On 12/25/2014 12:06 PM, Kevin Fenzi wrote:
On Thu, 25 Dec 2014 11:54:48 -0500 "Garry T. Williams" gtwilliams@gmail.com wrote:
Aw, it's not that hard. You just want to pick out any line with one of several words in it. Good old grep(1) will do it no problem. I suppressed stderr from the iwlist(8) command so the error message about interface lo doesn't show up. Also, the original grep(1) command doesn't allow for alternation (|), so I use grep -E or egrep:
$ iwlist scan 2>/dev/null|egrep 'Channel|Quality|ESSID|Cell' Cell 01 - Address: 00:30:BD:93:E9:2C Channel:4 Frequency:2.427 GHz (Channel 4) Quality=53/70 Signal level=-57 dBm ESSID:"vfr" Cell 02 - Address: EC:1A:59:07:3D:46 Channel:11 Frequency:2.462 GHz (Channel 11) Quality=32/70 Signal level=-78 dBm ESSID:"belkin.d46" $It looks like substituting "Frequency" for "Channel" will eliminate a line of output without losing what you say you want on each AP.
There's also nmcli for a more compact output, but not sure it has all the info you might need:
% nmcli device wifi list SSID MODE CHAN RATE SIGNAL BARS SECURITY xfinitywifi Infra 11 54 Mbit/s 25 ▂___ -- HOME-C072 Infra 11 54 Mbit/s 30 ▂___ WPA1 WPA2 xfinitywifi Infra 1 54 Mbit/s 24 ▂___ --
Now this is something more like I have been looking for!
You have 2 APs on channel 11, get one of them to move to channel 6 for better sharing the open range! :)
Interesting that xfinity is running open APs.