aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEyal Shapira <eyal@wizery.com>2012-10-24 17:44:18 +0200
committerEyal Shapira <eyal@wizery.com>2012-10-29 11:14:09 +0200
commit76efd31da240ea7204fbb507259680c822b23c8d (patch)
tree5769c947dc63c1d5d7a785f9a7e098f1a380fee9
parent264e5ef1c6f4cac7ac8eba626692f9a4091132d0 (diff)
downloadexternal_wpa_supplicant_8_ti-76efd31da240ea7204fbb507259680c822b23c8d.zip
external_wpa_supplicant_8_ti-76efd31da240ea7204fbb507259680c822b23c8d.tar.gz
external_wpa_supplicant_8_ti-76efd31da240ea7204fbb507259680c822b23c8d.tar.bz2
Trigger sched scan on wpa_s init if enabled networks (INTERNAL)
The switch to triggering a normal scan initially was done to prevent interference between sched scan and normal scan. This is no longer an issue. Triggering a sched scan is better as it works better in our case than the normal scan wrt hidden networks. Signed-off-by: Eyal Shapira <eyal@wizery.com>
-rw-r--r--wpa_supplicant/wpa_supplicant.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/wpa_supplicant/wpa_supplicant.c b/wpa_supplicant/wpa_supplicant.c
index 911a593..39630ad 100644
--- a/wpa_supplicant/wpa_supplicant.c
+++ b/wpa_supplicant/wpa_supplicant.c
@@ -2375,11 +2375,8 @@ int wpa_supplicant_driver_init(struct wpa_supplicant *wpa_s)
wpa_s->prev_scan_wildcard = 0;
if (wpa_supplicant_enabled_networks(wpa_s)) {
-#ifdef ANDROID
- wpa_supplicant_req_scan(wpa_s, wpa_s->scan_interval, 0);
-#else
- wpa_supplicant_req_scan(wpa_s, interface_count, 100000);
-#endif
+ wpa_supplicant_delayed_sched_scan(wpa_s,
+ interface_count, 100000);
interface_count++;
} else
wpa_supplicant_set_state(wpa_s, WPA_INACTIVE);