From: Jouni Malinen Date: Thu, 26 Dec 2024 10:30:22 +0000 (+0200) Subject: OWE: Accept only BSS entries with an actual SSID for ROAM command X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=093a0142222ca7c1d545efeff53f899f60d5fc2c;p=thirdparty%2Fhostap.git OWE: Accept only BSS entries with an actual SSID for ROAM command 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 --- diff --git a/wpa_supplicant/bss.c b/wpa_supplicant/bss.c index c641b510c..10ebab020 100644 --- a/wpa_supplicant/bss.c +++ b/wpa_supplicant/bss.c @@ -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 */