From: Jithu Jance Date: Mon, 14 Oct 2013 17:42:27 +0000 (+0300) Subject: WPS NFC: Cancel scheduled scan before attempting a scan X-Git-Tag: hostap_2_1~864 X-Git-Url: http://www.project-moonshot.org/gitweb/?p=mech_eap.git;a=commitdiff_plain;h=7e910b7b51807877c9ce9ca2bc2568060cb3be56 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 --- diff --git a/wpa_supplicant/wps_supplicant.c b/wpa_supplicant/wps_supplicant.c index f6c2fcb..a2b941c 100644 --- a/wpa_supplicant/wps_supplicant.c +++ b/wpa_supplicant/wps_supplicant.c @@ -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;