1
0
Fork 0
forked from mirror/openwrt

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 <nbd@nbd.name>
This commit is contained in:
Felix Fietkau 2026-03-19 09:38:36 +00:00
parent 1d98101743
commit a19cdb1a95

View file

@ -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) {