diff options
author | 2015-03-02 13:47:08 +0000 | |
---|---|---|
committer | 2015-03-02 13:47:08 +0000 | |
commit | dd463f29c687b46f3b8f379c8ee269693223931a (patch) | |
tree | 4207e86830012432d9f15c6e11317b7b9ceebaee /lib/libc | |
parent | load the correct firmware for 3160/7265 (diff) | |
download | wireguard-openbsd-dd463f29c687b46f3b8f379c8ee269693223931a.tar.xz wireguard-openbsd-dd463f29c687b46f3b8f379c8ee269693223931a.zip |
Fix scanning with athn(4) USB devices.
The driver artificially limited the number of slots for nodes in its net80211
node cache to 8, the rationale being the device firmware can only handle 8
associated nodes at a time. But that's not a good reason to only cache 8 of
potentially many APs in the area.
Instead of crippling upper layer data structures, impose the limit locally
by raising an error if more than 8 nodes are trying to associate (which can
only happen in hostap mode, and hostap mode seems to be broken anyway).
This matches what Linux ath9k does.
Also, use a USB-specific scan timeout callback to we can do USB refcounting
while scanning.
ok mpi@
Diffstat (limited to 'lib/libc')
0 files changed, 0 insertions, 0 deletions