Potential bug on limited output with `wpa_cli list_networks`

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all,

Is there a way to make `wpa_cli list_networks` output all of my
configured networks? I think I am encountering a bug where the output of
`wpa_cli list_networks` is limited to ~125 networks. I have ~150
networks configured under my
`/etc/wpa_supplicant/wpa_supplicant-wlp4s0.conf`, so my last ~25
networks are not being listed by wpa_cli's list_networks.

And Earnestly pointed out that this might be the section of code that is
limiting the output:
https://w1.fi/cgit/hostap/tree/wpa_supplicant/wpa_cli.c#n217 Perhaps it
has something to do with the buffer being limited to 4096 chars?

If interested, here is a comment about the bigger problem that I am
trying to solve:
https://gist.github.com/buhman/7162560#gistcomment-1878112 where I am
trying to search for a network's id (which is an integer that is
assigned from wpa_cli) by searching for the SSID. For example, if I want
to enable/disable a network called "tullys coffeehouse", I'll need to
grep/search my list of networks for something like "tully", get the id
(ie 144), then run `wpa_cli enable_network 144`.

Any help or suggestions would be appreciated.

Thanks,
Luke




_______________________________________________
Hostap mailing list
Hostap@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/hostap



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux