aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEyal Shapira <eyal@wizery.com>2012-02-20 10:53:20 +0200
committerArik Nemtsov <arik@wizery.com>2012-08-02 13:04:00 +0300
commit8bb238bbdc2829187de612a7e22eb1a2f310469f (patch)
tree9e8ff915b5bb75192563cef12d154fda4db7dd87
parentab3f57cc8060bfc62ca055988fed169195dc3bd9 (diff)
downloadexternal_wpa_supplicant_8_ti-8bb238bbdc2829187de612a7e22eb1a2f310469f.zip
external_wpa_supplicant_8_ti-8bb238bbdc2829187de612a7e22eb1a2f310469f.tar.gz
external_wpa_supplicant_8_ti-8bb238bbdc2829187de612a7e22eb1a2f310469f.tar.bz2
Use normal scan on first scan after init
Avoid using sched scan as the initial scan after wpa_s init. This prevents a scenario on Android in which the Android framework scan is preempted by a saved scan_ssid AP being connected to due to immediate sched scan. This delays receiving scan results.
-rw-r--r--wpa_supplicant/wpa_supplicant.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/wpa_supplicant/wpa_supplicant.c b/wpa_supplicant/wpa_supplicant.c
index 5e71108..5728a54 100644
--- a/wpa_supplicant/wpa_supplicant.c
+++ b/wpa_supplicant/wpa_supplicant.c
@@ -2347,10 +2347,7 @@ int wpa_supplicant_driver_init(struct wpa_supplicant *wpa_s)
wpa_s->prev_scan_wildcard = 0;
if (wpa_supplicant_enabled_networks(wpa_s)) {
- if (wpa_supplicant_delayed_sched_scan(wpa_s, interface_count,
- 100000))
- wpa_supplicant_req_scan(wpa_s, interface_count,
- 100000);
+ wpa_supplicant_req_scan(wpa_s, interface_count, 100000);
interface_count++;
} else
wpa_supplicant_set_state(wpa_s, WPA_INACTIVE);