diff mbox

[1/1] STA: Cancel schedule scan while initiating wps_reassoc

Message ID 20131120135056.GA22411@jithu@broadcom.com
State Accepted
Headers show

Commit Message

Jithu Jance Nov. 20, 2013, 1:50 p.m. UTC
Scan initiated from wps_nfc command context was keep on
getting rescheduled due to an on-going scheduled scan. So
cancel sched scan before issuing a reassoc scan.
Signed-hostap: Jithu Jance <jithu@broadcom.com>
---
 wpa_supplicant/wps_supplicant.c |    2 ++
 1 file changed, 2 insertions(+)

--
1.7.9.5

Comments

Jouni Malinen Nov. 20, 2013, 10:10 p.m. UTC | #1
On Wed, Nov 20, 2013 at 07:20:56PM +0530, Jithu Jance wrote:
> Scan initiated from wps_nfc command context was keep on
> getting rescheduled due to an on-going scheduled scan. So
> cancel sched scan before issuing a reassoc scan.

Thanks, applied.
diff mbox

Patch

diff --git a/wpa_supplicant/wps_supplicant.c b/wpa_supplicant/wps_supplicant.c
index 4c40dac..0b3c892 100644
--- a/wpa_supplicant/wps_supplicant.c
+++ b/wpa_supplicant/wps_supplicant.c
@@ -1052,6 +1052,8 @@  static void wpas_wps_reassoc(struct wpa_supplicant *wpa_s,
 	wpa_s->normal_scans = 0;
 	wpa_s->wps_success = 0;
 	wpa_s->blacklist_cleared = 0;
+
+	wpa_supplicant_cancel_sched_scan(wpa_s);
 	wpa_supplicant_req_scan(wpa_s, 0, 0);
 }