From 6e3f7173f1a560058c470d3dd6673d5461ce8f5b Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sat, 17 Jul 2010 20:27:19 -0700 Subject: [PATCH] SME: Retry scan after authentication failure This is needed to avoid getting stuck if driver fails authentication request for some reason. --- wpa_supplicant/sme.c | 1 + 1 file changed, 1 insertion(+) diff --git a/wpa_supplicant/sme.c b/wpa_supplicant/sme.c index c66e5225d..b5927c50c 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, ¶ms) < 0) { wpa_msg(wpa_s, MSG_INFO, "Authentication request to the " "driver failed"); + wpa_supplicant_req_scan(wpa_s, 1, 0); return; }