]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
WNM: Drop explicit SSID check
authorBenjamin Berg <benjamin.berg@intel.com>
Tue, 20 Feb 2024 13:18:21 +0000 (14:18 +0100)
committerJouni Malinen <j@w1.fi>
Sat, 2 Mar 2024 18:52:17 +0000 (20:52 +0200)
The call to wpa_scan_res_match already checks that the SSID matches
current_ssid. Therefore there is no need to do any further checking.

Signed-off-by: Benjamin Berg <benjamin.berg@intel.com>
wpa_supplicant/wnm_sta.c

index 924427fe6ae8f58d955296892c130efad24f710b..8c011582fb21dfb99879e0002a02dc566f11d669 100644 (file)
@@ -781,20 +781,10 @@ compare_scan_neighbor_results(struct wpa_supplicant *wpa_s, os_time_t age_secs,
                        }
                }
 
-               if (bss->ssid_len != target->ssid_len ||
-                   os_memcmp(bss->ssid, target->ssid, bss->ssid_len) != 0) {
-                       /*
-                        * TODO: Could consider allowing transition to another
-                        * ESS if PMF was enabled for the association.
-                        */
-                       wpa_printf(MSG_DEBUG, "Candidate BSS " MACSTR
-                                  " (pref %d) in different ESS",
-                                  MAC2STR(nei->bssid),
-                                  nei->preference_present ? nei->preference :
-                                  -1);
-                       continue;
-               }
-
+               /*
+                * TODO: Could consider allowing transition to another ESS if
+                * PMF was enabled for the association.
+                */
                if (!wpa_scan_res_match(wpa_s, 0, target, wpa_s->current_ssid,
                                        1, 0)) {
                        wpa_printf(MSG_DEBUG, "Candidate BSS " MACSTR