From: Jouni Malinen Date: Sun, 14 Dec 2014 14:48:38 +0000 (+0200) Subject: SAE: Report connection failure if SME cannot build auth frame X-Git-Tag: hostap_2_4~782 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=81648d0041b9f55f363db3a8345c8ec53352c699;p=thirdparty%2Fhostap.git SAE: Report connection failure if SME cannot build auth frame Instead of just stopping connection process and network discovery, report SAE failures to build Authentication frames (e.g., due to missing password) as a connection failure to get the normal retry mechanism into use. Signed-off-by: Jouni Malinen --- diff --git a/wpa_supplicant/sme.c b/wpa_supplicant/sme.c index 7eb896639..54ae82328 100644 --- a/wpa_supplicant/sme.c +++ b/wpa_supplicant/sme.c @@ -464,7 +464,7 @@ static void sme_send_authentication(struct wpa_supplicant *wpa_s, else resp = sme_auth_build_sae_confirm(wpa_s); if (resp == NULL) { - wpas_connect_work_done(wpa_s); + wpas_connection_failed(wpa_s, bss->bssid); return; } params.sae_data = wpabuf_head(resp);