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:
parent
8c06db703d
commit
5d0d72a3e5
1 changed files with 3 additions and 2 deletions
|
@ -2687,9 +2687,10 @@ int wpa_supplicant_driver_init(struct wpa_supplicant *wpa_s)
|
||||||
interface_count = 0;
|
interface_count = 0;
|
||||||
}
|
}
|
||||||
if (!wpa_s->p2p_mgmt &&
|
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))
|
100000))
|
||||||
wpa_supplicant_req_scan(wpa_s, interface_count,
|
wpa_supplicant_req_scan(wpa_s, interface_count % 3,
|
||||||
100000);
|
100000);
|
||||||
interface_count++;
|
interface_count++;
|
||||||
} else
|
} else
|
||||||
|
|
Loading…
Reference in a new issue