forked from mirror/openwrt
hostapd: ubus: fix beacon request reporting detail field size
The Reporting Detail value is a 1-byte field, but was written as le16, producing a 2-byte write that also contradicts the length field of 1 in the subelement header. Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
parent
0208089ded
commit
c5564ba071
1 changed files with 1 additions and 1 deletions
|
|
@ -1248,7 +1248,7 @@ hostapd_rrm_beacon_req(struct ubus_context *ctx, struct ubus_object *obj,
|
|||
/* as per 9-104 */
|
||||
wpabuf_put_u8(req, 2);
|
||||
wpabuf_put_u8(req, 1);
|
||||
wpabuf_put_le16(req, reporting_detail);
|
||||
wpabuf_put_u8(req, reporting_detail);
|
||||
}
|
||||
|
||||
ret = hostapd_send_beacon_req(hapd, addr, 0, req);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue