Skip to content

Commit

Permalink
iwlwifi: mvm: Avoid signal based decisions if ave beacon RSSI is 0
Browse files Browse the repository at this point in the history
If for some reason statistics notification received from the firmware
reports 0 in average beacon RSSI value, then skip it and avoid signal
based decisions.

Signed-off-by: Alexander Bondar <alexander.bondar@intel.com>
Reviewed-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
  • Loading branch information
Alexander Bondar authored and Emmanuel Grumbach committed Apr 19, 2015
1 parent 1083fd7 commit 8047cc0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions drivers/net/wireless/iwlwifi/mvm/rx.c
Original file line number Diff line number Diff line change
Expand Up @@ -478,6 +478,11 @@ static void iwl_mvm_stat_iterator(void *_data, u8 *mac,
if (vif->type != NL80211_IFTYPE_STATION)
return;

if (sig == 0) {
IWL_DEBUG_RX(mvm, "RSSI is 0 - skip signal based decision\n");
return;
}

mvmvif->bf_data.ave_beacon_signal = sig;

/* BT Coex */
Expand Down

0 comments on commit 8047cc0

Please sign in to comment.