[arch-projects] [netcfg] [PATCH 0/4] Connecting to wireless speedups

Thomas Bächler thomas at archlinux.org
Tue Jul 3 05:04:31 EDT 2012


Am 02.07.2012 23:07, schrieb Henrik Hallberg:
> Hi,
> 
> A couple of patches that speeds up connecting to wireless networks.
> Connecting to my home WPA DHCP, I went from ~12s to ~8s, the meat of
> which in patch 0004.
> 
> Henrik Hallberg (4):
>   Include timestamp in DEBUG message
>   Remove extra start_wpa/stop_wpa when not scanning
>   Lower latency in timeout_wait
>   Wait actively in {start,stop}_wpa
> 
>  src/8021x                | 17 +++++++++++------
>  src/connections/wireless | 17 +++++++++--------
>  src/globals              |  5 +++--
>  3 files changed, 23 insertions(+), 16 deletions(-)

I found that whole method confusing all the time. You first scan for the
network's existence, then connect to it or fail.

Instead, why not remodel this to use the same logic as
net-auto-wireless? Create the right wpa_supplicant configuration, start
wpa_s and let wpa_actiond bring up the interface? This seems much better
than hardcoded timeouts and wait loops inside shell scripts. And you do
not have to write much new code, everything's there.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 900 bytes
Desc: OpenPGP digital signature
URL: <http://mailman.archlinux.org/pipermail/arch-projects/attachments/20120703/2712a684/attachment.asc>


More information about the arch-projects mailing list