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.
This commit is contained in:
Jouni Malinen 2010-01-24 18:09:36 -08:00
parent 582507be85
commit b85e772449

View file

@ -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;
}