]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
OWE: Accept only BSS entries with an actual SSID for ROAM command
authorJouni Malinen <j@w1.fi>
Thu, 26 Dec 2024 10:30:22 +0000 (12:30 +0200)
committerJouni Malinen <j@w1.fi>
Thu, 26 Dec 2024 10:34:15 +0000 (12:34 +0200)
An AP in OWE transition mode shows up in the BSS table twice due to use
of the hidden SSID. Since roaming requires the SSID to be known, don't
select the BSS entry with an empty SSID to force the one with the actual
SSID to be used when using the ROAM command to roam between APs that
might use OWE transition mode.

Fixes: 56e8f8bf3490 ("OWE: Enable roaming between OWE APs")
Signed-off-by: Jouni Malinen <j@w1.fi>
wpa_supplicant/bss.c

index c641b510c81fc5783000a71cf32bf8ea60ce8ac6..10ebab0207a85341a10c17369a6e15bed94293c8 100644 (file)
@@ -316,7 +316,8 @@ struct wpa_bss * wpa_bss_get_connection(struct wpa_supplicant *wpa_s,
                                               &owe_ssid_len))
                        continue;
 
-               if (owe_ssid_len == ssid_len &&
+               if (bss->ssid_len &&
+                   owe_ssid_len == ssid_len &&
                    os_memcmp(owe_ssid, ssid, ssid_len) == 0)
                        return bss;
 #endif /* CONFIG_OWE */