wpa_supplicant: Put upper bound on initial scan time delay

This makes stations associate much faster when using lots of stations.
In addition, this avoids delaying the initial scan continuously for
dynamic interface removal/addition cases.

Signed-hostap: Ben Greear <greearb@candelatech.com>
This commit is contained in:
Ben Greear 2014-03-05 16:19:49 -08:00 committed by Jouni Malinen
parent 8c06db703d
commit 5d0d72a3e5

View file

@ -2687,9 +2687,10 @@ int wpa_supplicant_driver_init(struct wpa_supplicant *wpa_s)
interface_count = 0;
}
if (!wpa_s->p2p_mgmt &&
wpa_supplicant_delayed_sched_scan(wpa_s, interface_count,
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