]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
WNM: Drop check for current_ssid
authorBenjamin Berg <benjamin.berg@intel.com>
Tue, 20 Feb 2024 13:18:20 +0000 (14:18 +0100)
committerJouni Malinen <j@w1.fi>
Sat, 2 Mar 2024 18:52:17 +0000 (20:52 +0200)
It should never be NULL. In the unlikely event that it is NULL, the
logic changes slightly to reject all candidates.

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

index a883feabb5f8695cf9062a1b08edb691307e6dc9..924427fe6ae8f58d955296892c130efad24f710b 100644 (file)
@@ -795,8 +795,7 @@ compare_scan_neighbor_results(struct wpa_supplicant *wpa_s, os_time_t age_secs,
                        continue;
                }
 
-               if (wpa_s->current_ssid &&
-                   !wpa_scan_res_match(wpa_s, 0, target, wpa_s->current_ssid,
+               if (!wpa_scan_res_match(wpa_s, 0, target, wpa_s->current_ssid,
                                        1, 0)) {
                        wpa_printf(MSG_DEBUG, "Candidate BSS " MACSTR
                                   " (pref %d) does not match the current network profile",