OSDN Git Service

Allow immediate scan request even if another scan was scheduled later
authorDmitry Shmidt <dimitrysh@google.com>
Mon, 14 Nov 2011 23:53:31 +0000 (15:53 -0800)
committerDmitry Shmidt <dimitrysh@google.com>
Mon, 14 Nov 2011 23:53:31 +0000 (15:53 -0800)
Change-Id: I4f5c021da9ac66464ad422d65c5855fd72f39b41
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
wpa_supplicant/scan.c

index 69fa99f..bb64e9a 100644 (file)
@@ -504,6 +504,7 @@ static void wpa_supplicant_scan(void *eloop_ctx, void *timeout_ctx)
  */
 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
@@ -525,7 +526,7 @@ void wpa_supplicant_req_scan(struct wpa_supplicant *wpa_s, int sec, int usec)
                        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);