Fix scan rescheduling delay when new network is added
Signed-off-by: Zheng BaoZhong-E13358 <[email protected]>
Signed-off-by: Dmitry Shmidt <[email protected]>
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_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 @@
return;
}
}
+#endif
wpa_msg(wpa_s, MSG_DEBUG, "Setting scan request: %d sec %d usec",
sec, usec);