mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-01-17 18:34:03 -05:00
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
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user