SME: Fix processing of Authentication timeout
authorJouni Malinen <j@w1.fi>
Sun, 4 Dec 2011 20:27:48 +0000 (22:27 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 4 Dec 2011 20:27:48 +0000 (22:27 +0200)
The wpa_state needs to be dropped back to DISCONNECTED to allow scan
results to trigger a new authentication attempt.

Signed-hostap: Jouni Malinen <j@w1.fi>

wpa_supplicant/sme.c

index 8e1d95a..c5e47d1 100644 (file)
@@ -503,6 +503,7 @@ void sme_event_auth_timed_out(struct wpa_supplicant *wpa_s,
                              union wpa_event_data *data)
 {
        wpa_dbg(wpa_s, MSG_DEBUG, "SME: Authentication timed out");
+       wpa_supplicant_set_state(wpa_s, WPA_DISCONNECTED);
        wpas_connection_failed(wpa_s, wpa_s->pending_bssid);
 }