Discussion:
Why WiFi connections are established so slowly?
Yuri
2018-10-30 23:01:10 UTC
Permalink
I just measured: 20-40 seconds elapse between the insertion of the WiFi
card and the host obtaining IP address. This is quite slow IMHO. It is
hard to imagine that exchanging a few packets back and forth should take
that long.


Is something wrong with my setup? Can there be some bug that affects
this? Or should this be considered normal?


/etc/rc.config has:

wlans_run0="wlan0"

ifconfig_wlan0="WPA SYNCDHCP"

wpa_supplicant_enable="YES"

wpa_supplicant_program="/usr/local/sbin/wpa_supplicant"


run(4), FreeBSD 12 amd64.


Thanks,

Yuri
Vladimir Botka
2018-10-31 00:03:54 UTC
Permalink
On Tue, 30 Oct 2018 16:01:10 -0700
Post by Yuri
I just measured: 20-40 seconds elapse between the insertion of the WiFi
card and the host obtaining IP address. This is quite slow IMHO. It is
hard to imagine that exchanging a few packets back and forth should take
that long.
...
Setting "scan_freq: List of frequencies to scan" makes the connection faster
(especially for dual-band).
https://w1.fi/cgit/hostap/plain/wpa_supplicant/wpa_supplicant.conf

HTH,
-vlado
Adrian Chadd
2018-10-31 00:10:14 UTC
Permalink
It'd be interesting to figure out how much each step is taking. Eg, USB
detect, firmware load, create interface, bstart wpa_supplicant, etc - that
should be quick. I wonder if scan is taking forever..
Post by Yuri
I just measured: 20-40 seconds elapse between the insertion of the WiFi
card and the host obtaining IP address. This is quite slow IMHO. It is
hard to imagine that exchanging a few packets back and forth should take
that long.
Is something wrong with my setup? Can there be some bug that affects
this? Or should this be considered normal?
wlans_run0="wlan0"
ifconfig_wlan0="WPA SYNCDHCP"
wpa_supplicant_enable="YES"
wpa_supplicant_program="/usr/local/sbin/wpa_supplicant"
run(4), FreeBSD 12 amd64.
Thanks,
Yuri
_______________________________________________
https://lists.freebsd.org/mailman/listinfo/freebsd-wireless
"
Loading...