Is there a way to check if a client is still connectet to AP for real
because with this parametr
option max_inactivity '300'
the client will be 5 minuts on hostapd list
i need a command that checks (by mac )is the client is still there
Is there a way to check if a client is still connectet to AP for real
because with this parametr
option max_inactivity '300'
the client will be 5 minuts on hostapd list
i need a command that checks (by mac )is the client is still there
root@OpenWrt:~# iwinfo wlan1 assoclist | grep 00:25:D3:7D:38:C0 -A 3
00:25:D3:7D:38:C0 -44 dBm / -93 dBm (SNR 49) 10 ms ago
RX: 65.0 MBit/s, MCS 7, 20MHz 5437 Pkts.
TX: 65.0 MBit/s, MCS 7, 20MHz 5745 Pkts.
expected throughput: 30.9 MBit/s
root@OpenWrt:~#
Use the correct <device>
name.
nah , just cheaked
the stantion is still accocieted so i see the same output
root@AP2:~# iwinfo wlan0 assoclist
EE:52:2A:09:59:BA -70 dBm / -93 dBm (SNR 23) 58360 ms ago
RX: 6.0 MBit/s 5912 Pkts.
TX: 7.2 MBit/s, MCS 0, 20MHz 2153 Pkts.
expected throughput: 26.5 MBit/s
root@AP2:~# iwinfo wlan0 assoclist
EE:52:2A:09:59:BA -70 dBm / -93 dBm (SNR 23) 70430 ms ago
RX: 6.0 MBit/s 5912 Pkts.
TX: 7.2 MBit/s, MCS 0, 20MHz 2154 Pkts.
expected throughput: 26.5 MBit/s
root@AP2:~# iwinfo wlan0 assoclist
EE:52:2A:09:59:BA -70 dBm / -93 dBm (SNR 23) 71140 ms ago
RX: 6.0 MBit/s 5912 Pkts.
TX: 7.2 MBit/s, MCS 0, 20MHz 2155 Pkts.
expected throughput: 26.5 MBit/s
the mac adress gonna be for 5 minuts still there (300 seconds)
maybe some kind of probe to send
I don't understand if you want to check if the client is still connected or kick it off.
If it's the second, you need to use another command.
ubus call hostapd.wlan0 del_client "{'addr':'EE:52:2A:09:59:BA', 'reason':5, 'deauth':true, 'ban_time':60000}"
When a client has moved form AP1 to AP2 that client still in list on AP1 but the client is on AP2
so you can see the client like it is on both APs but it is on AP2 for real and on AP1 it is still in list
and it is gonna be for 5 minutes there (default 300 second)
So i need a command that checks is the MAC is really connected or not
Maybe some kind of probe request but i cant find anything a have no idea