查看所连接的客户端的个数和信息

iw dev wlan0 station dump

root@OpenWrt:~# iw dev wlan0 station dump
Station e0:ac:cb:b1:ca:ba (on wlan0)
inactive time: ms
rx bytes:
rx packets:
tx bytes:
tx packets:
tx retries:
tx failed:
signal: - dBm
signal avg: - dBm
tx bitrate: 72.2 MBit/s MCS short GI
rx bitrate: 24.0 MBit/s
expected throughput: .84Mbps
authorized: yes
authenticated: yes
preamble: short
WMM/WME: yes
MFP: no
TDLS peer: no
Station ::f3::cf: (on wlan0)
inactive time: ms
rx bytes:
rx packets:
tx bytes:
tx packets:
tx retries:
tx failed:
signal: - dBm
signal avg: - dBm
tx bitrate: 144.4 MBit/s MCS short GI
rx bitrate: 24.0 MBit/s
expected throughput: .20Mbps
authorized: yes
authenticated: yes
preamble: short
WMM/WME: yes
MFP: no
TDLS peer: no
Station :::9f:cc:fa (on wlan0)
inactive time: ms
rx bytes:
rx packets:
tx bytes:
tx packets:
tx retries:
tx failed:
signal: - dBm
signal avg: - dBm
tx bitrate: 57.8 MBit/s MCS short GI
rx bitrate: 24.0 MBit/s
expected throughput: .29Mbps
authorized: yes
authenticated: yes
preamble: short
WMM/WME: yes
MFP: no
TDLS peer: no
Station b0:d5:9d::3a:1a (on wlan0)
inactive time: ms
rx bytes:
rx packets:
tx bytes:
tx packets:
tx retries:
tx failed:
signal: - dBm
signal avg: - dBm
tx bitrate: 39.0 MBit/s MCS
rx bitrate: 58.5 MBit/s MCS
expected throughput: .180Mbps
authorized: yes
authenticated: yes
preamble: short
WMM/WME: yes
MFP: no
TDLS peer: no
Station a8:1b:5a:b7:e0: (on wlan0)
inactive time: ms
rx bytes:
rx packets:
tx bytes:
tx packets:
tx retries:
tx failed:
signal: - dBm
signal avg: - dBm
tx bitrate: 65.0 MBit/s MCS
rx bitrate: 6.0 MBit/s
expected throughput: .125Mbps
authorized: yes
authenticated: yes
preamble: short
WMM/WME: yes
MFP: no
TDLS peer: no

如果只要mac地址可以进行过滤

root@OpenWrt:~# iw dev wlan0 station dump | grep Station
Station e0:ac:cb:b1:ca:ba (on wlan0)
Station ::f3::cf: (on wlan0)
Station :::9f:cc:fa (on wlan0)
Station b0:d5:9d::3a:1a (on wlan0)
Station a8:1b:5a:b7:e0: (on wlan0)
05-13 08:08