---------- Forwarded Message ----------
Subject: Re: [OpenWrt-Devel] Dissociate STA based on SNR
Date: Monday 18 January 2016, 15:46:28
From: Bastian Bittorf <bittorf(a)bluebottle.com>
To: Nishant Sharma <codemarauder(a)gmail.com>
CC: openwrt-devel(a)lists.openwrt.org
* Nishant Sharma <codemarauder(a)gmail.com> [18.01.2016 15:40]:
I was wondering if there is a way to dissociate STAs
who say go below
a minimum threshold SNR or signal level of say -65dBm in a multi-AP
scenario?
we also faced this, while doing roaming.
i workaround is to have something like:
#!/bin/sh
iw event | while read -r LINE; do
case "$LINE" in
*': del station '*|*': new station '*)
# wlan0-1: del station 00:21:6a:32:7c:1c
# wlan0: new station dc:9f:db:02:b8:ee
...your own logic here...
;;
esac
done
what we do e.g. is if a station connects for the
first time and signal is below -70, we just kick.
#!/bin/sh
dev='wlan0-1'
mac=...
ubus call hostapd.$dev del_client '{ "addr" : "$mac",
"reason" : "assoc
toomany", "ban_time" : 10000 }'
if the same mac connects during a specific time again,
we dont kick 8-) - really, it's just a workaround.
bye ,bastian
_______________________________________________
openwrt-devel mailing list
openwrt-devel(a)lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
-----------------------------------------