• Johannes Berg's avatar
    cfg80211: fix BSS list hidden SSID lookup · 4593c4cb
    Johannes Berg authored
    When trying to find a hidden SSID, the lookup function
    is done wrong; the code is trying to combine the two
    lookups into one, and as a consequence doesn't always
    find the entry at all. To understand this, consider a
    case where multiple BSS entries with the same channel
    and BSSID exist but have different SSID length. Then
    comparing against the probe response SSID length is
    bound to cause problems since the hidden one might be
    either zeroed out or zero-length.
    
    To fix this we need to do two lookups for the two ways
    to hide SSIDs.
    Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
    4593c4cb
scan.c 35.2 KB