wpa_supp fail: too many networks. Which package is at fault?

Ask questions about Arch Linux ARM. Please search before making a new topic.

wpa_supp fail: too many networks. Which package is at fault?

Postby Veyrdite » Fri May 13, 2016 8:00 am

Background

My university has an extremely high density of wifi access points. When I scan for wireless networks an amazing amount of base stations are detected:

$this->bbcode_second_pass_code('', ' # iw dev mlan0 scan dump | grep ^BSS | wc -l
208')

The large amount of detected base stations seems to be causing something in my wireless stack to fail when I try to connect to a wireless network. This message is repeated by wpa_supplicant when the problem occurs:

$this->bbcode_second_pass_code('', 'ioctl[SIOCGIWSCAN]: Argument list too long')

My solution to this has been to kill wpa_supplicant, keep my wifi interface down for atleast 30 seconds, restart it and pray. This seems to be long enough that my system forgets previously detected networks and if I'm lucky it can connect before it detects too many again. I repeat this process several times over the space of a few minutes until I get success.

Who is to blame?
I'm not sure if this error comes from wpa_supplicant or from my kernel not supporting long enough process arguments. Does anyone have any ideas?

Misc system details
Samsung Chromebook (snow) armv7h
wifi is using driver 'wext'
Veyrdite
 
Posts: 22
Joined: Thu Jun 05, 2014 11:09 am

Re: wpa_supp fail: too many networks. Which package is at fa

Postby acconciox » Wed Jun 01, 2016 6:50 pm

if the system you are scanning is close you could reduce power
$this->bbcode_second_pass_code('', 'sudo iwconfig $wl txpower 1
')
maybe this makes the list shorter?
if you know before the name of the ssid

$this->bbcode_second_pass_code('', 'wpa_supplicant -B -f wpalog -D nl80211 -i wlan0 -c /etc/wpa_supplicant/nameandpassword.conf
')
could help you to identify the problem?

do you run wpa_supplicant with .conf ? in that case is ok to use sudo, if you use passphrase you have to use su before running wpa_supplicant. but this is a blind supposition
acconciox
 
Posts: 110
Joined: Thu May 05, 2016 4:39 pm

Re: wpa_supp fail: too many networks. Which package is at fa

Postby WarheadsSE » Wed Jun 01, 2016 7:19 pm

https://bugzilla.kernel.org/show_bug.cgi?id=16384

Seems the problem is actually wext in the kernel & it's buffer length.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm


Return to User Questions

Who is online

Users browsing this forum: Google [Bot] and 14 guests

cron