Revert "Allow immediate scan request even if another scan was scheduled later"
This reverts commit 81e9700b8fb135b898181ad3aeb44d39f0a01907.
diff --git a/wpa_supplicant/scan.c b/wpa_supplicant/scan.c
index 9dda477..8be68a5 100644
--- a/wpa_supplicant/scan.c
+++ b/wpa_supplicant/scan.c
@@ -913,7 +913,6 @@
*/
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
@@ -936,7 +935,7 @@
return;
}
}
-#endif
+
wpa_dbg(wpa_s, MSG_DEBUG, "Setting scan request: %d sec %d usec",
sec, usec);
eloop_cancel_timeout(wpa_supplicant_scan, wpa_s, NULL);