Programmatically scan WiFi networks

hi,

This is part 2 of a pair of posts about my project to put together a cheap-(the AR300M)-and-dirty-(my programming) monitoring solution.

 

What are the shell commands to get a list of WiFi networks/SSIDs that the AR300 can see at the moment? A connection to the network is not necessary, I need only a report of what’s in the air.

thanks a lot

simon

hi Simon,

If you just want to scan the AP stations nearby, pls try try one of the following three. The first or 2nd is supposed to be used.

iwinfo phy0 scan

iwinfo radio0 scan

iwinfo wlan0 scan

Works like a charm, thank you very much!