• Sara Sharon's avatar
    mac80211: ignore invalid scan RSSI values · 74d803b6
    Sara Sharon authored
    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: default avatarSara Sharon <sara.sharon@intel.com>
    Signed-off-by: default avatarEmmanuel Grumbach <emmanuel.grumbach@intel.com>
    Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
    74d803b6
scan.c 32.1 KB