wpa_supplicant: Issue with long scan times on startup.
j at w1.fi
Wed May 22 04:07:36 EDT 2013
On Tue, May 21, 2013 at 08:09:31PM -0700, Ben Greear wrote:
> 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
> @@ -2420,9 +2420,9 @@ int wpa_supplicant_driver_init(struct wpa_supplicant *wpa_s)
> - wpa_supplicant_req_scan(wpa_s, interface_count,
> + wpa_supplicant_req_scan(wpa_s, interface_count % 3,
> Any interest in pushing something like this upstream?
That's probably fine. When you go beyond tens of stations, all bets are
off on scanning anyway ;-). I'd make that value a bit higher, though,
since some concurrent cases are starting to show up with larger number
of interfaces. Say, five would sound fine to use in upstream and I'd
assume it wouldn't make much of difference for you either.
Jouni Malinen PGP id EFC895FA
More information about the HostAP