[openwrt/openwrt] hostapd: add beacon_interval to get_status ubus output

LEDE Commits lede-commits at lists.infradead.org
Sat Mar 19 17:34:54 PDT 2022


blocktrron pushed a commit to openwrt/openwrt.git, branch openwrt-21.02:
https://git.openwrt.org/e44a781e118b18da159d121e6caea926197b17d4

commit e44a781e118b18da159d121e6caea926197b17d4
Author: David Bauer <mail at david-bauer.net>
AuthorDate: Mon Oct 25 21:33:40 2021 +0200

    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 at david-bauer.net>
    (cherry picked from commit 3ba98468424db1f081818982dfa2a07ab85ae136)
---
 package/network/services/hostapd/src/src/ap/ubus.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/package/network/services/hostapd/src/src/ap/ubus.c b/package/network/services/hostapd/src/src/ap/ubus.c
index 64d417a758..a9cded0113 100644
--- a/package/network/services/hostapd/src/src/ap/ubus.c
+++ b/package/network/services/hostapd/src/src/ap/ubus.c
@@ -423,6 +423,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);




More information about the lede-commits mailing list