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:
parent
1d98101743
commit
a19cdb1a95
1 changed files with 1 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue