]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
SAE: Report connection failure if SME cannot build auth frame
authorJouni Malinen <j@w1.fi>
Sun, 14 Dec 2014 14:48:38 +0000 (16:48 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 14 Dec 2014 14:48:38 +0000 (16:48 +0200)
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 <j@w1.fi>
wpa_supplicant/sme.c

index 7eb896639a5369bc830f1327e8ef2f345802d7f4..54ae823288ab7c90d14ee80174de006929ddda87 100644 (file)
@@ -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);