Re: Why WiFi connections are established so slowly?

2018-10-30 Thread Adrian Chadd
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..


On Tue, 30 Oct 2018 at 16:03, Yuri  wrote:

> 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
>
>
> ___
> freebsd-wireless@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-wireless
> To unsubscribe, send any mail to "freebsd-wireless-unsubscr...@freebsd.org
> "
>
___
freebsd-wireless@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-wireless
To unsubscribe, send any mail to "freebsd-wireless-unsubscr...@freebsd.org"


Re: Why WiFi connections are established so slowly?

2018-10-30 Thread Vladimir Botka
On Tue, 30 Oct 2018 16:01:10 -0700
Yuri  wrote:
> 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


pgp5pUSXNyTcU.pgp
Description: OpenPGP digital signature


Why WiFi connections are established so slowly?

2018-10-30 Thread 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?



/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


___
freebsd-wireless@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-wireless
To unsubscribe, send any mail to "freebsd-wireless-unsubscr...@freebsd.org"