aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/scan.h
diff options
context:
space:
mode:
authorChengyi Zhao <chengyix.zhao@gmail.com>2013-07-20 14:47:02 (GMT)
committerJouni Malinen <j@w1.fi>2013-07-20 14:47:02 (GMT)
commit831770bffe7536b1c63608c2bef0ea223edb605d (patch)
tree8dc963375f600df80790f25c4a6e7da1d37f3cf2 /wpa_supplicant/scan.h
parent69dd2967db680a2dafc6f86feedb4730dc93a015 (diff)
downloadhostap-831770bffe7536b1c63608c2bef0ea223edb605d.zip
hostap-831770bffe7536b1c63608c2bef0ea223edb605d.tar.gz
hostap-831770bffe7536b1c63608c2bef0ea223edb605d.tar.bz2
Cancel delayed scheduled scan when wpa_supplicant cleans up
Because a delayed scheduled scan will access the members of struct wpa_supplicant which is freed and this can result in a crash, wpa_supplicant needs to cancel delayed scheduled scan during cleanups. Signed-hostap: Chengyi Zhao <chengyix.zhao@gmail.com>
Diffstat (limited to 'wpa_supplicant/scan.h')
-rw-r--r--wpa_supplicant/scan.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/wpa_supplicant/scan.h b/wpa_supplicant/scan.h
index e892479..2144787 100644
--- a/wpa_supplicant/scan.h
+++ b/wpa_supplicant/scan.h
@@ -15,6 +15,7 @@ int wpa_supplicant_delayed_sched_scan(struct wpa_supplicant *wpa_s,
int sec, int usec);
int wpa_supplicant_req_sched_scan(struct wpa_supplicant *wpa_s);
void wpa_supplicant_cancel_scan(struct wpa_supplicant *wpa_s);
+void wpa_supplicant_cancel_delayed_sched_scan(struct wpa_supplicant *wpa_s);
void wpa_supplicant_cancel_sched_scan(struct wpa_supplicant *wpa_s);
void wpa_supplicant_notify_scanning(struct wpa_supplicant *wpa_s,
int scanning);