]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
WNM: Ignore SSID check for hidden SSID in transition candidates
authorGurumoorthi Gnanasambandhan <gguru@codeaurora.org>
Fri, 23 Apr 2021 10:49:21 +0000 (16:19 +0530)
committerJouni Malinen <j@w1.fi>
Wed, 9 Jun 2021 17:55:39 +0000 (20:55 +0300)
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>
wpa_supplicant/wnm_sta.c

index c4c6651d42e6d9e35974940061924a39c9262e1a..8a1a44690ba5295fe9a621ffff663bba276dbe2c 100644 (file)
@@ -1343,11 +1343,11 @@ static int wnm_fetch_scan_results(struct wpa_supplicant *wpa_s)
                                continue;
                        bss = wpa_s->current_bss;
                        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] ||
                             os_memcmp(bss->ssid, ssid_ie + 2,
                                       bss->ssid_len) != 0))
-                               continue;
+                               continue; /* Skip entries for other ESSs */
 
                        /* Potential candidate found */
                        found = 1;