aboutsummaryrefslogtreecommitdiff
path: root/wpa_supplicant.c
diff options
context:
space:
mode:
authorDmitry Shmidt <dimitrysh@google.com>2009-08-13 09:03:20 -0700
committerDmitry Shmidt <dimitrysh@google.com>2009-08-13 09:03:20 -0700
commitaa9844c8b3f8880ff47e73d3fa457cb43b46ec24 (patch)
tree03e058a145e0288917d09ebba1685d81dbc2ead6 /wpa_supplicant.c
parentc5a0c705de5ae60afbe22ff6502d32e06b6078fb (diff)
downloadwpa_supplicant-aa9844c8b3f8880ff47e73d3fa457cb43b46ec24.tar.gz
Fix scan rescheduling delay when new network is added
Signed-off-by: Zheng BaoZhong-E13358 <bao-zhong@motorola.com> Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
Diffstat (limited to 'wpa_supplicant.c')
-rw-r--r--wpa_supplicant.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/wpa_supplicant.c b/wpa_supplicant.c
index c654fa7..aabef73 100644
--- a/wpa_supplicant.c
+++ b/wpa_supplicant.c
@@ -492,6 +492,7 @@ void wpa_blacklist_clear(struct wpa_supplicant *wpa_s)
*/
void wpa_supplicant_req_scan(struct wpa_supplicant *wpa_s, int sec, int usec)
{
+#ifndef ANDROID
/* If there's at least one network that should be specifically scanned
* then don't cancel the scan and reschedule. Some drivers do
* background scanning which generates frequent scan results, and that
@@ -513,6 +514,7 @@ void wpa_supplicant_req_scan(struct wpa_supplicant *wpa_s, int sec, int usec)
return;
}
}
+#endif
wpa_msg(wpa_s, MSG_DEBUG, "Setting scan request: %d sec %d usec",
sec, usec);