]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: ignore invalid scan RSSI values
authorSara Sharon <sara.sharon@intel.com>
Wed, 3 Jun 2015 07:44:17 +0000 (10:44 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 9 Jun 2015 19:51:59 +0000 (21:51 +0200)
commitfa1ee34b7ed129c99efee97fa3737982b8154361
treef72c77ce73d60ac01cac7c1c09b8c0b6afc960c6
parente1f6c5855079762de856524c669fa075147b77db
mac80211: ignore invalid scan RSSI values

Channels in 2.4GHz band overlap, this means that if we
send a probe request on channel 1 and then move to channel
2, we will hear the probe response on channel 2. In this
case, the RSSI will be lower than if we had heard it on
the channel on which it was sent (1 in this case).

The scan result ignores those invalid values and the
station last signal should not be updated as well.

In case the scan determines the signal to be invalid turn on
the flag so the station last signal will not be updated with
the value and thus user space probing for NL80211_STA_INFO_SIGNAL
and NL80211_STA_INFO_SIGNAL_AVG will not get this invalid RSSI
value.

Signed-off-by: Sara Sharon <sara.sharon@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/scan.c