From ffff7f7095cca07c7425808e88e4dc3cbd2b11f2 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Wed, 16 May 2018 19:01:23 +0300 Subject: [PATCH] OWE: Mark connection failed in the unlikely no-bss-entry case 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 --- wpa_supplicant/events.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/wpa_supplicant/events.c b/wpa_supplicant/events.c index 51e9d8a4f..8772291c1 100644 --- a/wpa_supplicant/events.c +++ b/wpa_supplicant/events.c @@ -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);