I'm trying to have the Yun scan the wifi networks in my area and return the routers' MAC address and signal strength. I want to do this without having to connect to a network. Also I've seen the ScanNetworks example already, but that seems to deal with the wifi shield and since the Yun has wifi built I have no desire for the shield. Any help is appreciated. Thanks!
opkg update
opkg install iwinfo
iwinfo wlan0 scan
Perfect, this is just what I wanted! Thank you very much.
Now my follow up question would be how would I be able to take those router MAC addresses and signal strengths and export them to say a text file?
iwinfo wlan0 scan |grep -E 'Address:|Signal:' >scan.txt