]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
hostapd: ubus: add missing token to beacon report notification
authorFelix Fietkau <nbd@nbd.name>
Thu, 19 Mar 2026 09:38:21 +0000 (09:38 +0000)
committerFelix Fietkau <nbd@nbd.name>
Thu, 19 Mar 2026 09:57:26 +0000 (10:57 +0100)
The beacon measurement token was not included in the ubus beacon-report
notification, causing consumers that need the token (e.g. for constructing
Beacon Metrics Response TLVs) to receive null.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
package/network/services/hostapd/src/src/ap/ubus.c

index 748690c5c3e282f179a0d1be0fe1b731f7c0e6ca..bd35f797aed516f73a52e7cc541487ffb27fe9c9 100644 (file)
@@ -2019,6 +2019,7 @@ void hostapd_ubus_notify_beacon_report(
 
        blob_buf_init(&b, 0);
        blobmsg_add_macaddr(&b, "address", addr);
+       blobmsg_add_u32(&b, "token", token);
        blobmsg_add_u16(&b, "op-class", rep->op_class);
        blobmsg_add_u16(&b, "channel", rep->channel);
        blobmsg_add_u64(&b, "start-time", rep->start_time);