From: Jouni Malinen Date: Wed, 16 May 2018 16:01:23 +0000 (+0300) Subject: OWE: Mark connection failed in the unlikely no-bss-entry case X-Git-Tag: hostap_2_7~334 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ffff7f7095cca07c7425808e88e4dc3cbd2b11f2;p=thirdparty%2Fhostap.git 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 --- 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);