[PATCH 2/2] Ensure reset of wpa_s->scanning if scan is cancelled

Dmitry Shmidt dimitrysh
Tue Nov 12 12:41:58 PST 2013


Signed-off-by: Dmitry Shmidt <dimitrysh at google.com>
---
 wpa_supplicant/scan.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/wpa_supplicant/scan.c b/wpa_supplicant/scan.c
index 96c127b..41e0dfc 100644
--- a/wpa_supplicant/scan.c
+++ b/wpa_supplicant/scan.c
@@ -1217,6 +1217,7 @@ void wpa_supplicant_cancel_scan(struct wpa_supplicant *wpa_s)
 	wpa_dbg(wpa_s, MSG_DEBUG, "Cancelling scan request");
 	eloop_cancel_timeout(wpa_supplicant_scan, wpa_s, NULL);
 	wpas_p2p_continue_after_scan(wpa_s);
+	wpa_supplicant_notify_scanning(wpa_s, 0);
 }
 
 
-- 
1.8.4.1




More information about the Hostap mailing list