aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/sme.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2011-12-04 19:04:24 (GMT)
committerJouni Malinen <j@w1.fi>2011-12-04 19:04:24 (GMT)
commited57c5907ebe10d7b2bbd21619d74dd4a48c245f (patch)
treedfa82b5afbb240fadf09aa78eccf798cabb258a5 /wpa_supplicant/sme.c
parent8b41e056562e113f64f2979d2e5eaca8d5f992e8 (diff)
downloadhostap-ed57c5907ebe10d7b2bbd21619d74dd4a48c245f.zip
hostap-ed57c5907ebe10d7b2bbd21619d74dd4a48c245f.tar.gz
hostap-ed57c5907ebe10d7b2bbd21619d74dd4a48c245f.tar.bz2
SME: Fix processing of Authentication request failure
The wpa_state needs to be dropped back to DISCONNECTED to allow scan results to trigger a new authentication attempt. In addition, we can use wpas_connection_failed() instead of requesting a scan after a fixed time to make this error case more consistent with other similar error paths in sme.c. Signed-hostap: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'wpa_supplicant/sme.c')
-rw-r--r--wpa_supplicant/sme.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/wpa_supplicant/sme.c b/wpa_supplicant/sme.c
index b63f4bb..8e1d95a 100644
--- a/wpa_supplicant/sme.c
+++ b/wpa_supplicant/sme.c
@@ -265,7 +265,8 @@ void sme_authenticate(struct wpa_supplicant *wpa_s,
if (wpa_drv_authenticate(wpa_s, &params) < 0) {
wpa_msg(wpa_s, MSG_INFO, "SME: Authentication request to the "
"driver failed");
- wpa_supplicant_req_scan(wpa_s, 1, 0);
+ wpa_supplicant_set_state(wpa_s, WPA_DISCONNECTED);
+ wpas_connection_failed(wpa_s, bss->bssid);
return;
}