From 1cba9bea96feca5fb9e49ef71b5bcafa477f48eb Mon Sep 17 00:00:00 2001 From: Jithu Jance Date: Wed, 20 Nov 2013 19:20:56 +0530 Subject: [PATCH] STA: Cancel sched_scan while initiating wps_reassoc Scan initiated from wps_nfc command context was ketp on getting rescheduled due to an on-going scheduled scan. So cancel sched_scan before issuing a reassociation scan. Signed-hostap: Jithu Jance --- 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 4c40dac4b..0b3c8922f 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); }