diff options
author | Felix Fietkau <nbd@nbd.name> | 2018-02-10 19:42:12 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2018-02-21 19:28:59 +0100 |
commit | 21bb42fb8aa0c7ae2d81f5d49f9f4acf130cd444 (patch) | |
tree | 98a915346ad5baedc708a9a60c7b0c5a2fb2e2f4 /package/network/services/hostapd | |
parent | e2681eb06a7d482d0595bb0a58920bc5358c61f7 (diff) | |
download | upstream-21bb42fb8aa0c7ae2d81f5d49f9f4acf130cd444.tar.gz upstream-21bb42fb8aa0c7ae2d81f5d49f9f4acf130cd444.tar.bz2 upstream-21bb42fb8aa0c7ae2d81f5d49f9f4acf130cd444.zip |
hostapd: expose client 802.11k capabilities via ubus
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'package/network/services/hostapd')
-rw-r--r-- | package/network/services/hostapd/src/src/ap/ubus.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/package/network/services/hostapd/src/src/ap/ubus.c b/package/network/services/hostapd/src/src/ap/ubus.c index 3dfc0a268f..2f92b78593 100644 --- a/package/network/services/hostapd/src/src/ap/ubus.c +++ b/package/network/services/hostapd/src/src/ap/ubus.c @@ -168,6 +168,7 @@ hostapd_bss_get_clients(struct ubus_context *ctx, struct ubus_object *obj, blobmsg_add_u32(&b, "freq", hapd->iface->freq); list = blobmsg_open_table(&b, "clients"); for (sta = hapd->sta_list; sta; sta = sta->next) { + void *r; int i; sprintf(mac_buf, MACSTR, MAC2STR(sta->addr)); @@ -175,6 +176,11 @@ hostapd_bss_get_clients(struct ubus_context *ctx, struct ubus_object *obj, for (i = 0; i < ARRAY_SIZE(sta_flags); i++) blobmsg_add_u8(&b, sta_flags[i].name, !!(sta->flags & sta_flags[i].flag)); + + r = blobmsg_open_array(&b, "rrm"); + for (i = 0; i < ARRAY_SIZE(sta->rrm_enabled_capa); i++) + blobmsg_add_u32(&b, "", sta->rrm_enabled_capa[i]); + blobmsg_close_array(&b, r); blobmsg_add_u32(&b, "aid", sta->aid); blobmsg_close_table(&b, c); } |