Encontrou as informações de que você precisa aqui:
for INTERFACE in $(nvram get wl_ifnames)
do
for CLIENT in $(wl -i $INTERFACE assoclist | sed 's/assoclist//')
do
echo $INTERFACE $CLIENT $(wl -i $INTERFACE rssi $CLIENT)
done
done
OK no código acima recorte o comando nvram obtém os nomes da interface sem fio assim:
# echo $(nvram get wl_ifnames)
eth1 eth2
wl assoclist fornece os endereços MAC de todos os clientes conectados:
# wl -i eth2 assoclist
assoclist 11:11:11:11:11:11
assoclist 22:22:22:22:22:22
use rssi para obter a intensidade do sinal de cada um:
# wl -i eth2 rssi 22:22:22:22:22:22
-64
use sta_info para obter dados adicionais
# wl -i eth2 sta_info 22:22:22:22:22:22
STA 22:22:22:22:22:22:
aid:1
rateset [ 6 9 12 18 24 36 48 54 ]
idle 2 seconds
in network 1647 seconds
state: AUTHENTICATED ASSOCIATED AUTHORIZED
flags 0x11e13b: BRCM WME PS N_CAP VHT_CAP AMPDU AMSDU
HT caps 0x6f: LDPC 40MHz SGI20 SGI40
VHT caps 0x63: LDPC SGI80 SU-BFR SU-BFE
tx data pkts: 959451
tx data bytes: 199701001
tx ucast pkts: 16565
tx ucast bytes: 40283979
tx mcast/bcast pkts: 942886
tx mcast/bcast bytes: 159417022
tx failures: 0
rx data pkts: 9659
rx data bytes: 1144526
rx ucast pkts: 9650
rx ucast bytes: 1143442
rx mcast/bcast pkts: 9
rx mcast/bcast bytes: 1084
rate of last tx pkt: 866667 kbps
rate of last rx pkt: 24000 kbps
rx decrypt succeeds: 7880
rx decrypt failures: 1
tx data pkts retried: 15
tx data pkts retry exhausted: 0
per antenna rssi of last rx data frame: -68 -71 -66 0
per antenna average rssi of rx data frames: -68 -71 -64 0
per antenna noise floor: -98 -98 -98 0