aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorDavid Bauer <mail@david-bauer.net>2021-10-25 21:33:40 +0200
committerDavid Bauer <mail@david-bauer.net>2021-11-25 02:41:42 +0100
commit3ba98468424db1f081818982dfa2a07ab85ae136 (patch)
tree31c9d973efca2da953a877c53c44c249bda9d608 /package
parentf8b2bc550bd57e59e5def03e397ccfc6fcc0a81c (diff)
downloadupstream-3ba98468424db1f081818982dfa2a07ab85ae136.tar.gz
upstream-3ba98468424db1f081818982dfa2a07ab85ae136.tar.bz2
upstream-3ba98468424db1f081818982dfa2a07ab85ae136.zip
hostapd: add beacon_interval to get_status ubus output
Add the beacon interval to hostapd status output. This allows external services to discover the beacon interval for a specific VAP. This way, external wireless management daemons can correctly calculate fields containing TBTT value from absolute time-values. Signed-off-by: David Bauer <mail@david-bauer.net>
Diffstat (limited to 'package')
-rw-r--r--package/network/services/hostapd/src/src/ap/ubus.c1
1 files changed, 1 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 69778596a4..e0d3d2ae90 100644
--- a/package/network/services/hostapd/src/src/ap/ubus.c
+++ b/package/network/services/hostapd/src/src/ap/ubus.c
@@ -425,6 +425,7 @@ hostapd_bss_get_status(struct ubus_context *ctx, struct ubus_object *obj,
blobmsg_add_u32(&b, "freq", hapd->iface->freq);
blobmsg_add_u32(&b, "channel", ieee80211_frequency_to_channel(hapd->iface->freq));
+ blobmsg_add_u32(&b, "beacon_interval", hapd->iconf->beacon_int);
snprintf(phy_name, 17, "%s", hapd->iface->phy);
blobmsg_add_string(&b, "phy", phy_name);