[PATCH 1/1] WPS: Cancel scheduled scan before attempting a scan in WPS NFC Config token case

Jithu Jance jithu at broadcom.com
Tue Oct 8 08:21:18 EDT 2013


WPS: Cancel scheduled scan (if any) before attempting
to scan for the newly received configuration/credential.

Signed-hostap: Jithu Jance <jithu at broadcom.com>

---
 wpa_supplicant/wps_supplicant.c |    2 ++
 1 file changed, 2 insertions(+)

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;
--
1.7.9.5




More information about the HostAP mailing list