WNM: Ignore SSID check for hidden SSID in transition candidates

Do not skip scan results with zero length SSID (i.e., a hidden SSID)
when searching for potential BSS transition candidates since such
entries might be for the same ESS (i.e., for the current SSID). Use only
the BSSID check for such cases.

Signed-off-by: Gurumoorthi Gnanasambandhan <gguru@codeaurora.org>
This commit is contained in:
Gurumoorthi Gnanasambandhan 2021-04-23 16:19:21 +05:30 committed by Jouni Malinen
parent 525ec045f3
commit 9f901e65b4

View file

@ -1343,11 +1343,11 @@ static int wnm_fetch_scan_results(struct wpa_supplicant *wpa_s)
continue; continue;
bss = wpa_s->current_bss; bss = wpa_s->current_bss;
ssid_ie = wpa_scan_get_ie(res, WLAN_EID_SSID); ssid_ie = wpa_scan_get_ie(res, WLAN_EID_SSID);
if (bss && ssid_ie && if (bss && ssid_ie && ssid_ie[1] &&
(bss->ssid_len != ssid_ie[1] || (bss->ssid_len != ssid_ie[1] ||
os_memcmp(bss->ssid, ssid_ie + 2, os_memcmp(bss->ssid, ssid_ie + 2,
bss->ssid_len) != 0)) bss->ssid_len) != 0))
continue; continue; /* Skip entries for other ESSs */
/* Potential candidate found */ /* Potential candidate found */
found = 1; found = 1;