[PATCH] OWE: Do not scan for transition mode AP with owe_only=1

Andrei Otcheretianski andrei.otcheretianski at intel.com
Tue Dec 12 07:21:35 PST 2023


From: Ilan Peer <ilan.peer at intel.com>

As the network block is configured not to allow transition mode.

Signed-off-by: Ilan Peer <ilan.peer at intel.com>
---
 wpa_supplicant/scan.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/wpa_supplicant/scan.c b/wpa_supplicant/scan.c
index a855557991..d2aec86626 100644
--- a/wpa_supplicant/scan.c
+++ b/wpa_supplicant/scan.c
@@ -944,7 +944,7 @@ static void wpa_add_owe_scan_ssid(struct wpa_supplicant *wpa_s,
 #ifdef CONFIG_OWE
 	struct wpa_bss *bss;
 
-	if (!(ssid->key_mgmt & WPA_KEY_MGMT_OWE))
+	if (!(ssid->key_mgmt & WPA_KEY_MGMT_OWE) || ssid->owe_only)
 		return;
 
 	wpa_printf(MSG_DEBUG, "OWE: Look for transition mode AP. ssid=%s",
-- 
2.38.1




More information about the Hostap mailing list