Existem 2 comandos que você pode usar para fornecer o valor RSSI.
Você pode primeiro cat /proc/net/wireless
file e obter os resultados lá. Isso usa a menor quantidade de recursos dos dois métodos
$ /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
A outra alternativa é usar iwconfig/iwlist
(minha interface sem fio é wlo1, então substitua pelo nome de interface apropriado)
$ /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