From: Jouni Malinen Date: Mon, 25 Jan 2010 02:09:36 +0000 (-0800) Subject: SME: Request a new scan if SME association command fails X-Git-Tag: hostap_0_7_2~219 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b85e772449ac739553a02348e843d5a97279d19a;p=thirdparty%2Fhostap.git 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. --- diff --git a/wpa_supplicant/sme.c b/wpa_supplicant/sme.c index dadd83789..27b7d253b 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, ¶ms) < 0) { wpa_msg(wpa_s, MSG_INFO, "Association request to the driver " "failed"); + wpa_supplicant_req_scan(wpa_s, 5, 0); return; }