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 <jouni@codeaurora.org>
This commit is contained in:
Jouni Malinen 2018-05-16 19:01:23 +03:00 committed by Jouni Malinen
parent 0cc41ee635
commit ffff7f7095

View 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);