Skip to main content

How to find out the wifi sensitivity (RSSI) [Resolved]

I want to be able to get the received signal strength indication from my computer's wifi interface, ideally as expressed in dBm.

This article explains what I am after.


Question Credit: linuscl
Question Reference
Asked October 9, 2019
Posted Under: Unix Linux
12 views
2 Answers

There are 2 commands you can use that can give you the RSSI value.

You can first cat /proc/net/wireless file and get the results there. This uses the least amount of resources of the 2 methods

$ /bin/cat /proc/net/wireless

Inter-| sta-|   Quality        |   Discarded packets               | Missed | WE
 face | tus | link level noise |  nwid  crypt   frag  retry   misc | beacon | 22

wlo1: 0000   70.  -31.  -256        0      0      0      0     25        0

The other alternative is to use iwconfig/iwlist (my wireless interface is wlo1, so replace with the appropriate interface name)

$ /sbin/iwconfig wlo1
wlo1      IEEE 802.11  ESSID:"COD PUBLIC WIRELESS"
          Mode:Managed  Frequency:5.745 GHz  Access Point: 40:E3:D6:63:BC:B0
          Bit Rate=866.7 Mb/s   Tx-Power=22 dBm
          Retry short limit:7   RTS thr:off   Fragment thr:off<br>
          Power Management:on
          Link Quality=67/70  Signal level=-43 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:27   Missed beacon:0



$ iwlist wlo1 scanning

wlo1      Scan completed :
          Cell 01 - Address: 40:E3:D6:63:BC:B0
                    Channel:149
                    Frequency:5.745 GHz
                    Quality=70/70  Signal level=-38 dBm
                    Encryption key:off
                    ESSID:"COD PUBLIC WIRELESS"
                    Bit Rates:12 Mb/s; 24 Mb/s; 36 Mb/s; 48 Mb/s; 54 Mb/s
                    Mode:Master
                    Extra:tsf=00000075dccaa121
                    Extra: Last beacon: 81624ms ago
                    IE: Unknown: 0013434F44205055424C494320574952454C455353
                    IE: Unknown: 010598B048606C
                    IE: Unknown: 030195
                    IE: Unknown: 2D1AEF091BFFFFFFFF00000000000000000000000000000000000000
                    IE: Unknown: 3D1695050400000000000000000000000000000000000000
                    IE: Unknown: 4A0E14000A002C01C800140005001900
                    IE: Unknown: 7F080100080000000040
                    IE: Unknown: BF0CB1798B33AAFF0000AAFF0000
                    IE: Unknown: C005019B000000
                    IE: Unknown: DD180050F2020101800003A4000027A4000042435E0062322F00

credit: Stephen Rauch
Answered October 9, 2019
Your Answer