Changeset 4892


Ignore:
Timestamp:
01/20/09 22:37:33 (4 years ago)
Author:
werner
Message:

Also display the channel number.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • developers/werner/bin/wlanscan

    r4693 r4892  
    33function flush() 
    44{ 
    5     printf("%3s %-32s %9s dBm %s\n", cell, essid, signal, crypt) 
     5    printf("%3s %-32s %2s %9s dBm %s\n", cell, essid, chan, signal, crypt) 
    66    cell = "?" 
    77    essid = "?" 
    88    signal = "?" 
    99    crypt = "?" 
     10    chan = "?" 
    1011} 
    1112 
     
    3839    crypt = "WPA" 
    3940} 
     41/^ *Frequency:/ { 
     42    match($0, /Channel [0-9]*/) 
     43    chan = substr($0, RSTART+8, RLENGTH-8) 
     44} 
    4045END { 
    4146    if (cell != "") 
Note: See TracChangeset for help on using the changeset viewer.