wpa_supplicant: Issue with long scan times on startup.

Ben Greear greearb
Tue May 21 20:09:31 PDT 2013


When you have lots of stations, the initial scan time logic
goes a bit haywire, causing long delays before the initial scan
is attempted.

The patch below works better for me:

diff --git a/wpa_supplicant/wpa_supplicant.c b/wpa_supplicant/wpa_supplicant.c
index 4b8d0d0..a398bb8 100644
--- a/wpa_supplicant/wpa_supplicant.c
+++ b/wpa_supplicant/wpa_supplicant.c
@@ -2420,9 +2420,9 @@ 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,
+               if (wpa_supplicant_delayed_sched_scan(wpa_s, interface_count % 3,
                                                       100000))
-                       wpa_supplicant_req_scan(wpa_s, interface_count,
+                       wpa_supplicant_req_scan(wpa_s, interface_count % 3,
                                                 100000);
                 interface_count++;
         } else


Any interest in pushing something like this upstream?

Thanks,
Ben

-- 
Ben Greear <greearb at candelatech.com>
Candela Technologies Inc  http://www.candelatech.com




More information about the Hostap mailing list