[[email protected]: Re: Too many wlans]
FYI...
Signature · 3 lines
Klaus Ethgen http://www.ethgen.ch/ pub 4096R/4E20AF1C 2011-05-16 Klaus Ethgen <[email protected]> Fingerprint: 85D4 CA42 952C 949B 1753 62B3 79D0 B06F 4E20 AF1C
Hi,
Am So den 19. Dez 2021 um 18:22 schrieb Daniel Wagner:
Quoted 20 lines · Klaus Ethgen
Quoted 19 lines
Hello,
I found a bug in connman when too many networks are stored into
/var/lib/connman.I shuttle between different locations and today, connman stopped showing networks at all. After some debugging, I found the following Messages in
wpa_supplicantdebug output:``` wlan0: Event SCAN_RESULTS (3) received Scan results did not fit - trying larger buffer (8192 bytes) Scan results did not fit - trying larger buffer (16384 bytes) Scan results did not fit - trying larger buffer (32768 bytes) Scan results did not fit - trying larger buffer (65535 bytes) ioctl[SIOCGIWSCAN]: Argument list too long wlan0: Failed to get scan results wlan0: Failed to get scan results - try scanning again ```
Quoted 7 lines
Quoted 3 lines
The
Argument list too longgot my interest and I looked into/var/lib/connmanfinding 104 directories in the formwifi_XXXXXXXXXXXX_XXXXXXXX_managed_XXXXXXXXX.Do you have the exact log for this? ConnMan uses GLib APIs for iterating over files and directory. I would be very surprised if GLib is not able to deal with this small numbers of entries.
Well, not more than I already wrote.
It id really hard to get usable debugging informations from connman. Usually, log messages are not of any use. I got the above info only via killing the dbus started wpa_supplicant and starting it manually via wpa_supplicant -dddd -u -K.
In the past I did debug (a still not working) problem with openvpn and I also stumbled with how to get useful informations.
Quoted 6 lines
Quoted 2 lines
After deleting all directories and restarting connman, everything went back to working state.
I don't think 104 known networks are a real resource problem as long there is enough memory in the system. But even then, I don't think ConnMan needs more than a few kb per known network.
The above messages suggests that wpa_supplicant gets all that infos and use it with ioctl, which has some limitations (64kb). So, this could indeed be a problem. However, just as I wrote, removing all that old dirs and restarting connman fixed the issue.
Quoted 7 lines
Quoted 1 line
So, if that directories is an issue, could it be cleaned up?
Yes you can cleanup the directories but it's recommended not to do this while ConnMan is running.
I think by deleting all known networks and previously corrupted? entry got removed which prevented the proper working before.
I don't understand that sentence. Could you be -v?
Regards
Klaus
Signature · 3 lines
Klaus Ethgen http://www.ethgen.ch/ pub 4096R/4E20AF1C 2011-05-16 Klaus Ethgen <[email protected]> Fingerprint: 85D4 CA42 952C 949B 1753 62B3 79D0 B06F 4E20 AF1C