diff options
author | Stijn Tintel <stijn@linux-ipv6.be> | 2022-08-11 12:46:23 +0300 |
---|---|---|
committer | Stijn Tintel <stijn@linux-ipv6.be> | 2022-08-15 16:53:27 +0300 |
commit | f37a7fa4e87ca80fa98a65b8dea0f537c8d0e2b5 (patch) | |
tree | 6310acf5588dd8db96cc7bce830a9152860dcdee /package/network | |
parent | 05775e38a52007397e5460bd87fa1ac957feb2af (diff) | |
download | upstream-f37a7fa4e87ca80fa98a65b8dea0f537c8d0e2b5.tar.gz upstream-f37a7fa4e87ca80fa98a65b8dea0f537c8d0e2b5.tar.bz2 upstream-f37a7fa4e87ca80fa98a65b8dea0f537c8d0e2b5.zip |
hostapd: add mbo flag to get_clients ubus method
There is no WLAN_STA_MBO flag, but according to the hostapd source code,
when an STA does not support MBO, cell_capa will be 0. Use this to
indicate MBO support in the get_clients ubus method.
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
Reviewed-by: David Bauer <mail@david-bauer.net>
Diffstat (limited to 'package/network')
-rw-r--r-- | package/network/services/hostapd/src/src/ap/ubus.c | 4 |
1 files changed, 4 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 182aae7d05..622eab8838 100644 --- a/package/network/services/hostapd/src/src/ap/ubus.c +++ b/package/network/services/hostapd/src/src/ap/ubus.c @@ -318,6 +318,10 @@ hostapd_bss_get_clients(struct ubus_context *ctx, struct ubus_object *obj, blobmsg_add_u8(&b, sta_flags[i].name, !!(sta->flags & sta_flags[i].flag)); +#ifdef CONFIG_MBO + blobmsg_add_u8(&b, "mbo", !!(sta->cell_capa)); +#endif + 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]); |