aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/sme.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2011-12-04 20:27:48 (GMT)
committerJouni Malinen <j@w1.fi>2011-12-04 20:27:48 (GMT)
commit14115a108901616aa83e800609118146b9487d93 (patch)
tree576e1878a79e687fa8c6cba82ac8a43721aa3448 /wpa_supplicant/sme.c
parentd00821e913eda00e3c61aaacc78687766f150d11 (diff)
downloadhostap-14115a108901616aa83e800609118146b9487d93.zip
hostap-14115a108901616aa83e800609118146b9487d93.tar.gz
hostap-14115a108901616aa83e800609118146b9487d93.tar.bz2
SME: Fix processing of Authentication timeout
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>
Diffstat (limited to 'wpa_supplicant/sme.c')
-rw-r--r--wpa_supplicant/sme.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/wpa_supplicant/sme.c b/wpa_supplicant/sme.c
index 8e1d95a..c5e47d1 100644
--- a/wpa_supplicant/sme.c
+++ b/wpa_supplicant/sme.c
@@ -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);
}