-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Ehlo,
I am trying to ban an associated station from an ap via ubus. I can
get the client list with hostapd.wlan0 get_clients, and I can kick a
specific client. Tho only the ban seems not to work, the ban list
always keeps empty and the client reconnects in an instant.
root@nh2:~# ubus call hostapd.wlan0 get_clients
{
"freq": 2437,
"clients": {
"00:00:ca:ff:ee:00": {
"auth": true,
"assoc": true,
"authorized": true,
"preauth": false,
"wds": false,
"wmm": true,
"ht": true,
"vht": false,
"wps": false,
"mfp": false,
"aid": 2
}
}
}
root@nh2:~# ubus call hostapd.wlan0 del_client '{"addr":
"00:00:ca:ff:ee:00", "reason": 5, "deauth": True, "ban_time": 60}'
root@nh2:~# ubus call hostapd.wlan0 list_bans
{
"clients": [
]
}
the reason is from hostapd-20131120/src/common/ieee802_11_defs.h, I
tried several different, tho reason 5 seems the least harmful:
WLAN_REASON_DISASSOC_AP_BUSY ;)
any hints here?
grtz,
.k
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.14 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
iQGcBAEBAgAGBQJStE2mAAoJEJhnRHRRn9SyopcMALElwMRvq38x4yZUUB0e1d4a
SCnTxayv6RxPjJkHjbWC+gNGGwUMYF10AWZLXbwIFNZma7zqpfZHXo4rHK9FDWy+
bySEfCC9e+b7uFHaw29yOVjGomuk6PFv5KUaDFlOzGkxo6nm7yuv1+XrRwajLJmX
6EdWf1SsFJDNreBHwxE3Z09iy/yls/j0Ly337WqGMxPcddRfCcv3YpZoxRY2khmt
zcrh4rphgIczW4IeJv2VhqTi8EhKegXXc1QOsEWv6o1EXsnP7nRfZ7ObG2l+9H9n
gfwvCrTY7BgJylf6DObYAmGdGgZocFsmbKqIL7jXyAnNC74NS7MSD9Aal+bWg4l/
yZ5PdKF4OhdwbxJr3SMsTScGQHH1HDbVkUTkHXo7ntjmjFNfWhtcH2FllAbsuu6k
KixbbWuu9PgDaeilEhFtG3jajG3Ax3PE6J5qJbGliOLBpLUUEkBFwZ9z16476xQ9
j6oOyvs6gTUod01GWqEun3nJK8sg/mSc+mhpZbhy2Q==
=ZEl+
-----END PGP SIGNATURE-----
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel