From: Felix Fietkau Date: Thu, 19 Mar 2026 09:38:36 +0000 (+0000) Subject: hostapd: ubus: fix parent-tsf size in beacon report notification X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a19cdb1a958f4ef6215d2f896db38782cf685f7b;p=thirdparty%2Fopenwrt.git hostapd: ubus: fix parent-tsf size in beacon report notification parent_tsf in struct rrm_measurement_beacon_report is le32 (32-bit), but was being added with blobmsg_add_u16, truncating the value. Signed-off-by: Felix Fietkau --- diff --git a/package/network/services/hostapd/src/src/ap/ubus.c b/package/network/services/hostapd/src/src/ap/ubus.c index bd35f797aed..514f56eebd7 100644 --- a/package/network/services/hostapd/src/src/ap/ubus.c +++ b/package/network/services/hostapd/src/src/ap/ubus.c @@ -2029,7 +2029,7 @@ void hostapd_ubus_notify_beacon_report( blobmsg_add_u16(&b, "rsni", rep->rsni); blobmsg_add_macaddr(&b, "bssid", rep->bssid); blobmsg_add_u16(&b, "antenna-id", rep->antenna_id); - blobmsg_add_u16(&b, "parent-tsf", rep->parent_tsf); + blobmsg_add_u32(&b, "parent-tsf", rep->parent_tsf); blobmsg_add_u16(&b, "rep-mode", rep_mode); encoded = base64_encode(rep, len, NULL); if (encoded) {