If you do sudo iwlist wlan0 scan freq 2412
or sudo iw wlan0 scan freq 2412
you will get a full scan and not a channel scan.
I think there maybe a bug in the RPi implementation of iw.
Has anyone had success with this function on the Pi?
If you do sudo iwlist wlan0 scan freq 2412
or sudo iw wlan0 scan freq 2412
you will get a full scan and not a channel scan.
I think there maybe a bug in the RPi implementation of iw.
Has anyone had success with this function on the Pi?
After working with one of the iw dev team, he shared a command option that works every time.
Adding the "flush" option works with the RPi-3b I am using.
sudo iw scann freq 2412 flush
It does not work with a Lenovo/IBM Thinkpad I have with an old 54g WiFi card in it.
It appears there maybe a caching issue for them to address on some implementations.
sudo iw dev wlan0 scan freq 2412
. On my RPi 3B with Raspbian Stretch Lite 2018-06-27 it works no matter if I use flush
or not. It filters networks with channel 1 (freq 2412) but not from the 5 GHz band.
– Ingo
Aug 25 '18 at 09:16
In the "sudo iw scann freq 2412 flush" answer the scan had an extra "n" in it.
The "dev" is not required.
Of course locking the scan to channel 1 does not do anything in the 5GHz band as the lowest channel in 5GHz is channel 36.
Thanks for catching it.
– padapa Sep 03 '18 at 13:25