path: root/wpa_supplicant/scan.h
diff options
authorLuciano Coelho <coelho@ti.com>2011-09-27 19:21:38 (GMT)
committerJouni Malinen <j@w1.fi>2011-10-15 15:53:14 (GMT)
commit6a90053cdfbf62fea6ddb1b0269b1176b796e01e (patch)
tree9a1027511200d0ad167216d446a97d59281152b9 /wpa_supplicant/scan.h
parentbd525934e5f4cde3be2cd4c4def46ebaba3eaa0f (diff)
Add delayed scheduled scan request
When initializing, the scheduled scan code was being called before everything is ready. With normal scans, the first scan round is delayed, so the initialization is finished by the time it really starts. Add a function that can be used to request a delayed scheduled scan. The scan will only start after the specified time has elapsed. Call this function instead of starting the scheduled scan directly during driver initialization. Signed-off-by: Luciano Coelho <coelho@ti.com>
Diffstat (limited to 'wpa_supplicant/scan.h')
1 files changed, 2 insertions, 0 deletions
diff --git a/wpa_supplicant/scan.h b/wpa_supplicant/scan.h
index f9d21b0..81dee01 100644
--- a/wpa_supplicant/scan.h
+++ b/wpa_supplicant/scan.h
@@ -17,6 +17,8 @@
int wpa_supplicant_enabled_networks(struct wpa_config *conf);
void wpa_supplicant_req_scan(struct wpa_supplicant *wpa_s, int sec, int usec);
+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_sched_scan(struct wpa_supplicant *wpa_s);