iwlist interface [ scan| frequency| rate| keys|
power| txpower| retry| event| auth| wpakeys| genie| modulation]
Options are NOT prefixed with a -
Information not displayed by iwconfig
Values shown here were taken 9/10/19 on ETG
scan [essid NNN] [last] | Access Points and Ad-Hoc cells in range, and optionally (ESSID, Quality, Frequency, Mode...). Privileged operation (root ), Normal users read left-over scan results. essid a scan on a specific ESSID. May enable hidden networks. last does not trigger a scan and read left-over scan results.
| |||||||||||||||||||||||
freq[uency]/channel |
Version on Raspberry pi buster takes longer between scan outoputs than stretch
/proc/net/wireless
cat /proc/net/wireless Inter-| sta-| Quality | Discarded packets | Missed | WE face | tus | link level noise | nwid crypt frag retry misc | beacon | 22 wlan0: 0000 53. -57. -256 0 0 0 4 0 0
wlan0 Interface doesn't support scanning : Device or resource busy
i
iwconfig [interface]
iwconfig interface [essid X] [nwid N] [mode M] [freq F]
[channel C][sens S ][ap A ][nick NN ]
[rate R] [rts RT] [frag FT] [txpower T]
[enc E] [key K] [power P] [retry R]
[modu M] [commit]
Options are NOT prefixed with a -
Similar to ifconfig
, dedicated for wireless.
sudo iwconfig wlan0 wlan0 IEEE 802.11 ESSID:"disabled" Mode:Managed Frequency:2.462 GHz Access Point: 20:C0:47:C2:A8:A6 Bit Rate=65 Mb/s Tx-Power=31 dBm Retry short limit:7 RTS thr:off Fragment thr:off Encryption key:off Power Management:on Link Quality=55/70 Signal level=-55 dBm Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0 Tx excessive retries:2 Invalid misc:0 Missed beacon:0
essid off|any|name |
cat /proc/net/wireless Inter-| sta-| Quality | Discarded packets | Missed | WE face | tus | link level noise | nwid crypt frag retry misc | beacon | 22 wlan0: 0000 53. -57. -256 0 0 0 4 0 0Some parameters have two modes (such as bitrate).
Access Point/Cell |
hostname pi93graf: sudo iwlist wlan0 scan |grep -v Unknown # supress junk reformatted wlan0 Scan completed : Cell 01 - Address: 20:C0:47:C2:A8:A6 Channel:11 Frequency:2.462 GHz (Channel 11) Quality=45/70 Signal level=-65 dBm Encryption key:on ESSID:"disabled" Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 18 Mb/s 24 Mb/s; 36 Mb/s; 54 Mb/s Bit Rates:6 Mb/s; 9 Mb/s; 12 Mb/s; 48 Mb/s Mode:Master Extra:tsf=0000000000000000 Extra: Last beacon: 10ms ago IE: Unknown: 000864697361626C6564 IE: Unknown: 010882848B962430486C IE: Unknown: 03010B IE: Unknown: 050400010000 IE: Unknown: 0706555320010B1E IE: Unknown: 2A0100 IE: Unknown: 32040C121860 IE: IEEE 802.11i/WPA2 Version 1 Group Cipher : CCMP Pairwise Ciphers (1) : CCMP Authentication Suites (1) : PSK IE: Unknown: 0B0505003F0000 IE: Unknown: 46050300000000 IE: Unknown: 2D1AAD091BFFFFFF0000000000000000000000000000000000000000 IE: Unknown: 3D160B080400000000000000000000000000000000000000 IE: Unknown: 7F080400080000000040 IE: Unknown: DD310050F204104A000110104400010210470010FF8AB30B943BEBD7CD 1E40346192D2BD103C0001031049000600372A000120 IE: Unknown: DD090010180205001C0000 IE: Unknown: DD180050F2020101840003A4000027A4000042435E0062322F00 Cell 02 - Address: B0:4E:26:48:C5:F9 Channel:2 Frequency:2.417 GHz (Channel 2) Quality=19/70 Signal level=-91 dBm Encryption key:off ESSID:"TP-Link_Extender" --- Halls ugly i.e. now encrypt Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 9 Mb/s 18 Mb/s; 36 Mb/s; 54 Mb/s Bit Rates:6 Mb/s; 12 Mb/s; 24 Mb/s; 48 Mb/s Mode:Master Extra:tsf=0000000000000000 Extra: Last beacon: 10ms ago IE: Unknown: 001054502D4C696E6B5F457874656E646572 IE: Unknown: 010882848B961224486C IE: Unknown: 030102 IE: Unknown: 32040C183060 IE: Unknown: 33082001020304050607 IE: Unknown: 33082105060708090A0B IE: Unknown: 050400010000 IE: Unknown: 2A0104 IE: Unknown: 2D1AEE1117FFFF000001000000000000000000000000000000000000 IE: Unknown: 3D1602050600000000000000000000000000000000000000 IE: Unknown: 4A0E14000A002C01C800140005001900 IE: Unknown: DD180050F2020101800003A4000027A4000042435E0062322F00 IE: Unknown: 0B05010000127A IE: Unknown: DD07000C4303000000 Cell 03 - Address: F4:F2:6D:A5:20:16 Channel:6 Frequency:2.437 GHz (Channel 6) Quality=70/70 Signal level=-28 dBm Encryption key:on ESSID:"TP-LINK_A52016" Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s 9 Mb/s; 12 Mb/s; 18 Mb/s Bit Rates:24 Mb/s; 36 Mb/s; 48 Mb/s; 54 Mb/s Mode:Master Extra:tsf=0000000000000000 Extra: Last beacon: 10ms ago IE: Unknown: 000E54502D4C494E4B5F413532303136 IE: Unknown: 010882848B960C121824 IE: Unknown: 030106 IE: Unknown: 2A0101 IE: Unknown: 32043048606C IE: Unknown: 2D1A6E101EFFFF000000000000000000000000000000000000000000 IE: Unknown: 3D1606050300000000000000000000000000000000000000 IE: WPA Version 1 Group Cipher : TKIP Pairwise Ciphers (2) : TKIP CCMP Authentication Suites (1) : PSK IE: IEEE 802.11i/WPA2 Version 1 Group Cipher : TKIP Pairwise Ciphers (2) : TKIP CCMP Authentication Suites (1) : PSK IE: Unknown: DD180050F2020101000003A4000027A4000042435E0062322F00 IE: Unknown: DD1E00904C336E101EFFFF000000000000000000000000000000000000000000 IE: Unknown: DD1A00904C3406050300000000000000000000000000000000000000 IE: Unknown: DD0600E04C0201E0 Cell 04 - Address: FC:3F:DB:DF:5E:5C Channel:11 Frequency:2.462 GHz (Channel 11) Quality=16/70 Signal level=-94 dBm Encryption key:on ESSID:"DIRECT-5A-HP ENVY 7640 series" Bit Rates:6 Mb/s; 9 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s 36 Mb/s; 48 Mb/s; 54 Mb/s Mode:Master Extra:tsf=0000000000000000 Extra: Last beacon: 10ms ago IE: Unknown: 001D4449524543542D35412D485020454E5659203736343020736572696573 IE: Unknown: 01088C129824B048606C IE: Unknown: 03010B IE: Unknown: 200100 IE: Unknown: 23021400 IE: Unknown: 2A0100 IE: Unknown: 2F0100 IE: IEEE 802.11i/WPA2 Version 1 Group Cipher : CCMP Pairwise Ciphers (1) : CCMP Authentication Suites (1) : PSK IE: Unknown: 2D1A20001AFF00000000000000000000000000000000000000000000 IE: Unknown: 3D160B080000000000000000000000000000000000000000 IE: Unknown: DD090010180200000C0000 IE: Unknown: DD180050F202010188000364000027A4000041435E0061322F00 IE: Unknown: DD9E0050F204104A000110104400010210570001011041000100103B00010 3104700101C852A4DB8001F08ABCDFC3FDBDF5E5910210002485010230001 30102400013010420001301054000800030050F20400051011001D4449524 543542D35412D485020454E56592037363430207365726965731008000200 001049000600372A00012010490017000137100600101C852A4DB8001F08ABCDFC3FDBDF5E59 IE: Unknown: DD5F080009000400000007010201000311454E56592037363430207365726 96573000405373634350005105448363235335330394D3036353100000610 1C852A4DB8001F08ABCDFC3FDBDF5E590704C0A80113080200D4090200080A0400000001
wlan0 IEEE 802.11 ESSID:"disabled" Mode:Managed Frequency:2.462 GHz Access Point: 20:C0:47:C2:A8:A6 Bit Rate=65 Mb/s Tx-Power=31 dBm Retry short limit:7 RTS thr:off Fragment thr:off Power Management:on Link Quality=44/70 Signal level=-66 dBm Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0 Tx excessive retries:307 Invalid misc:0 Missed beacon:0 lo no wireless extensions.
iwspy [interface]
iwspy interface [+] dnsname | ipaddr | MAC […
iwspy interface off
iwspy interface setthr low high
iwspy interface getthr
set a list of addresses to monitor in a wireless network interface and to read back quality of link information
from /proc/net/wireless
: quality of the link, signal strength…
up to 8 addresses .
dnsname | ipaddr|MAC |
iwgetid [--raw] [--scheme] [--ap] [--freq] [--mode] [--protocol] [--channel] [interface]
Output NWID, ESSID or AP/Cell Address of the wireless network that is currently used. The information
is the as shown by iwconfig,
but is easier to integrate in scripts.
Default, outputs the ESSID or NWID.
Default formatting is pretty-print.
wlan0 ESSID:"home-wifi"
--raw |
iwpriv [interface]
iwpriv interface private-command [private-parameters]
iwpriv interface private-command [I] [private-parameters]
iwpriv interface --all
Not available on raspberry Pi Zero W
companion to iwconfig,
deals with parameters and setting specific to each driver (iwconfig
deals with generic ones).
Without arguments, list the available private commands available
private-command [private-parameters] |
wlan0 Available private ioctl : setqualthr (89F0) : set 1 byte & get 0 gethisto (89F7) : set 0 & get 16 intFrom Onion omega
iwpriv apcli0 stat apcli0 stat: CurrentTemperature = 58 Tx success = 57484 Tx fail count = 71519, PER=55.4% Rx success = 7411925 Rx with CRC = 10307219, PER=9.6% Rx with PhyErr = 0 Rx with PlcpErr = 0 Rx drop due to out of resource = 0 Rx duplicate frame = 0 False CCA = 0 RSSI = -60 0 28 TX AGG Range 1 (1) = 125863 TX AGG Range 2 (2~5) = 1902 TX AGG Range 3 (6~15) = 32 TX AGG Range 4 (>15) = 3 AMPDU Tx success = 57490 AMPDU Tx fail count = 72779, PER=55.8% WPS Information: Enrollee PinCode(ra0) 28982685 Enrollee PinCode(ApCli0) 28982708 Ap Client WPS Profile Count = 0This indicate that you may set the quality threshold and display an histogram of up to 16 values with :
iwpriv wlan0 setqualthr 20
iwpriv wlan0 gethisto
/proc/net/wirelessSee rfkill