Skip to content

Commit 1e92919

Browse files
committed
iwlwifi: mvm: don't WARN when statistics are handled late
Since the statistics handler is asynchrous, it can very well be that we will handle the statistics (hence the RSSI fluctuation) when we already disassociated. Don't WARN on this case. This solves: https://bugzilla.redhat.com/show_bug.cgi?id=1071998 Cc: <[email protected]> [3.10+] Fixes: 2b76ef1 ("iwlwifi: mvm: implement reduced Tx power") Reviewed-by: Johannes Berg <[email protected]> Signed-off-by: Emmanuel Grumbach <[email protected]>
1 parent 143582c commit 1e92919

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

drivers/net/wireless/iwlwifi/mvm/bt-coex.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -872,8 +872,11 @@ void iwl_mvm_bt_rssi_event(struct iwl_mvm *mvm, struct ieee80211_vif *vif,
872872

873873
lockdep_assert_held(&mvm->mutex);
874874

875-
/* Rssi update while not associated ?! */
876-
if (WARN_ON_ONCE(mvmvif->ap_sta_id == IWL_MVM_STATION_COUNT))
875+
/*
876+
* Rssi update while not associated - can happen since the statistics
877+
* are handled asynchronously
878+
*/
879+
if (mvmvif->ap_sta_id == IWL_MVM_STATION_COUNT)
877880
return;
878881

879882
/* No BT - reports should be disabled */

0 commit comments

Comments
 (0)