]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
OWE: Mark connection failed in the unlikely no-bss-entry case
authorJouni Malinen <jouni@codeaurora.org>
Wed, 16 May 2018 16:01:23 +0000 (19:01 +0300)
committerJouni Malinen <j@w1.fi>
Wed, 16 May 2018 16:01:23 +0000 (19:01 +0300)
If no BSS entry can be found when processing association rejected event
from the driver for the special OWE case of unsupported
finite-cyclic-group, process the event as a connection failure instead
of just skipping the the OWE retry with another DH group.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
wpa_supplicant/events.c

index 51e9d8a4ff47b798cf19395d8cb551dce27e9ca6..8772291c17e91a7a6fd05ce7a0c0055f466d9ffb 100644 (file)
@@ -3932,8 +3932,11 @@ static void wpas_event_assoc_reject(struct wpa_supplicant *wpa_s,
 
                if (!bss) {
                        bss = wpa_supplicant_get_new_bss(wpa_s, bssid);
-                       if (!bss)
+                       if (!bss) {
+                               wpas_connection_failed(wpa_s, bssid);
+                               wpa_supplicant_mark_disassoc(wpa_s);
                                return;
+                       }
                }
                wpa_printf(MSG_DEBUG, "OWE: Try next supported DH group");
                wpas_connect_work_done(wpa_s);