[PATCH] Fix scanning state when sched_scan is stopped explicitly
Dmitry Shmidt
dimitrysh
Wed Apr 9 15:48:07 PDT 2014
Change-Id: I6deca387f7c64e4125e85ecfd585e1cff6931ab1
Signed-off-by: Dmitry Shmidt <dimitrysh at google.com>
---
wpa_supplicant/scan.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/wpa_supplicant/scan.c b/wpa_supplicant/scan.c
index 1d4e6e5..af34887 100644
--- a/wpa_supplicant/scan.c
+++ b/wpa_supplicant/scan.c
@@ -261,6 +261,9 @@ int wpa_supplicant_stop_sched_scan(struct wpa_supplicant *wpa_s)
wpa_dbg(wpa_s, MSG_DEBUG, "stopping sched_scan failed!");
/* TODO: what to do if stopping fails? */
return -1;
+ } else {
+ wpa_s->sched_scanning = 0;
+ wpa_supplicant_notify_scanning(wpa_s, 0);
}
return ret;
--
1.9.1.423.g4596e3a
More information about the Hostap
mailing list