Jan-24-2020, 12:03 PM
The call to wifi.Cell.all is not returning all wireless networks as regular user but is does as root user !
I don't know if it is a bug or by design. I don't know if it is related to the other network is a 5GHz or not.
Why wifi.Cell.all ('wlan0') is returning only one wifi network as regular user?
How can I get all wireless networks as a regular user ?
I don't know if it is a bug or by design. I don't know if it is related to the other network is a 5GHz or not.
Output:upsscan@orangepi3:~/bin$ ls /sys/class/net
eth0 lo wlan0
upsscan@orangepi3:~/bin$ python
Python 2.7.16 (default, Oct 10 2019, 22:02:15)
[GCC 8.3.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import wifi
>>> wifi.Cell.all ('wlan0')
[Cell(ssid=rozsasnet)]
>>>
upsscan@orangepi3:~/bin$ sudo python
Python 2.7.16 (default, Oct 10 2019, 22:02:15)
[GCC 8.3.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import wifi
>>> wifi.Cell.all ('wlan0')
[Cell(ssid=rozsasnet), Cell(ssid=rozsasnet_5G)]
>>>
upsscan@orangepi3:~/bin$
One of then is 2.4GHz and the other one is 5GHz.Why wifi.Cell.all ('wlan0') is returning only one wifi network as regular user?
How can I get all wireless networks as a regular user ?