aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/sme.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2010-01-24 18:09:36 -0800
committerJouni Malinen <j@w1.fi>2010-01-24 18:09:36 -0800
commitb85e772449ac739553a02348e843d5a97279d19a (patch)
tree27479f8991a17e018ff5b5ec4d4404d3f47b1877 /wpa_supplicant/sme.c
parent582507be85205742ebb96d7e42ae5d2f4d5d4ddf (diff)
downloadexternal_wpa_supplicant_8_ti-b85e772449ac739553a02348e843d5a97279d19a.zip
external_wpa_supplicant_8_ti-b85e772449ac739553a02348e843d5a97279d19a.tar.gz
external_wpa_supplicant_8_ti-b85e772449ac739553a02348e843d5a97279d19a.tar.bz2
SME: Request a new scan if SME association command fails
This handles some error cases without getting stuck waiting for new events from the driver if association command fails for any reason.
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 dadd837..27b7d25 100644
--- a/wpa_supplicant/sme.c
+++ b/wpa_supplicant/sme.c
@@ -314,6 +314,7 @@ void sme_event_auth(struct wpa_supplicant *wpa_s, union wpa_event_data *data)
if (wpa_drv_associate(wpa_s, &params) < 0) {
wpa_msg(wpa_s, MSG_INFO, "Association request to the driver "
"failed");
+ wpa_supplicant_req_scan(wpa_s, 5, 0);
return;
}