aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Malinen <jouni.malinen@atheros.com>2010-07-18 03:27:19 (GMT)
committerJouni Malinen <j@w1.fi>2010-07-18 16:39:26 (GMT)
commite50464f5df2c9f5b35770b563a7f7c1c89861099 (patch)
tree86f0f50f438e92f3244bef3e01b1b22ebbeadd1b
parent8033b0e37ef764a8bfd712c2c2535c6b472f5049 (diff)
downloadhostap-07-e50464f5df2c9f5b35770b563a7f7c1c89861099.zip
hostap-07-e50464f5df2c9f5b35770b563a7f7c1c89861099.tar.gz
hostap-07-e50464f5df2c9f5b35770b563a7f7c1c89861099.tar.bz2
SME: Retry scan after authentication failure
This is needed to avoid getting stuck if driver fails authentication request for some reason. (cherry picked from commit 6e3f7173f1a560058c470d3dd6673d5461ce8f5b)
-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 c66e522..b5927c5 100644
--- a/wpa_supplicant/sme.c
+++ b/wpa_supplicant/sme.c
@@ -228,6 +228,7 @@ void sme_authenticate(struct wpa_supplicant *wpa_s,
if (wpa_drv_authenticate(wpa_s, &params) < 0) {
wpa_msg(wpa_s, MSG_INFO, "Authentication request to the "
"driver failed");
+ wpa_supplicant_req_scan(wpa_s, 1, 0);
return;
}