Skip to content

Commit e48fdd4

Browse files
mvpublicworksgregkh
authored andcommitted
iwlwifi: update BT traffic load states correctly
commit 882dde8 upstream. When BT traffic load changes from its previous state, a new LQ command needs to be sent down to the firmware. This needs to be done only once per change. The state variable that keeps track of this change is last_bt_traffic_load. However, it was not being updated when the change had been handled. Not updating this variable was causing a flood of advanced BT config commands to be sent to the firmware. Fix this. Signed-off-by: Meenakshi Venkataraman <[email protected]> Signed-off-by: Wey-Yi Guy <[email protected]> Signed-off-by: Johannes Berg <[email protected]> Signed-off-by: John W. Linville <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 2d363e9 commit e48fdd4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/net/wireless/iwlwifi/iwl-agn-rs.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -878,6 +878,7 @@ static void rs_bt_update_lq(struct iwl_priv *priv, struct iwl_rxon_context *ctx,
878878
if ((priv->bt_traffic_load != priv->last_bt_traffic_load) ||
879879
(priv->bt_full_concurrent != full_concurrent)) {
880880
priv->bt_full_concurrent = full_concurrent;
881+
priv->last_bt_traffic_load = priv->bt_traffic_load;
881882

882883
/* Update uCode's rate table. */
883884
tbl = &(lq_sta->lq_info[lq_sta->active_tbl]);

0 commit comments

Comments
 (0)