aboutsummaryrefslogtreecommitdiffstats
path: root/package/network/services
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2018-04-30 13:48:54 +0200
committerJo-Philipp Wich <jo@mein.io>2018-12-18 17:22:04 +0100
commit46fa2453fdbd530b6df251401f1d07a8a91b8c81 (patch)
tree872394a8830ef25bd4d50be1f54f4e4c2ace10eb /package/network/services
parentc1a856b18ba84f9ed1e40c77b398919752c3b8d0 (diff)
downloadupstream-46fa2453fdbd530b6df251401f1d07a8a91b8c81.tar.gz
upstream-46fa2453fdbd530b6df251401f1d07a8a91b8c81.tar.bz2
upstream-46fa2453fdbd530b6df251401f1d07a8a91b8c81.zip
hostapd: expose device taxonomy signature via ubus
Signed-off-by: Felix Fietkau <nbd@nbd.name> (backported from 7d8681ccb99730ca0b35a5c341b468a86cadbf35)
Diffstat (limited to 'package/network/services')
-rw-r--r--package/network/services/hostapd/src/src/ap/ubus.c6
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 2c310adae2..37a20ed774 100644
--- a/package/network/services/hostapd/src/src/ap/ubus.c
+++ b/package/network/services/hostapd/src/src/ap/ubus.c
@@ -20,6 +20,7 @@
#include "beacon.h"
#include "rrm.h"
#include "wnm_ap.h"
+#include "taxonomy.h"
static struct ubus_context *ctx;
static struct blob_buf b;
@@ -184,6 +185,11 @@ hostapd_bss_get_clients(struct ubus_context *ctx, struct ubus_object *obj,
blobmsg_add_u32(&b, "", sta->rrm_enabled_capa[i]);
blobmsg_close_array(&b, r);
blobmsg_add_u32(&b, "aid", sta->aid);
+#ifdef CONFIG_TAXONOMY
+ r = blobmsg_alloc_string_buffer(&b, "signature", 1024);
+ if (retrieve_sta_taxonomy(hapd, sta, r, 1024) > 0)
+ blobmsg_add_string_buffer(&b);
+#endif
blobmsg_close_table(&b, c);
}
blobmsg_close_array(&b, list);