WPS NFC: Cancel scheduled scan before attempting a scan

Cancel scheduled scan (if any) before attempting to scan for the newly
received configuration/credential in WPS NFC Config token case.

Signed-hostap: Jithu Jance <jithu@broadcom.com>
This commit is contained in:
Jithu Jance 2013-10-14 20:42:27 +03:00 committed by Jouni Malinen
parent 24d110dca3
commit 7e910b7b51

View file

@ -2174,6 +2174,8 @@ static int wpas_wps_use_cred(struct wpa_supplicant *wpa_s,
}
wpa_s->disconnected = 0;
wpa_s->reassociate = 1;
wpa_supplicant_cancel_sched_scan(wpa_s);
wpa_supplicant_req_scan(wpa_s, 0, 0);
return 0;