From: Felix Fietkau Date: Wed, 18 Mar 2026 15:58:52 +0000 (+0000) Subject: hostapd: ubus: fix beacon request reporting detail field size X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c5564ba071904cbbfe078f15b525676dba1cccab;p=thirdparty%2Fopenwrt.git 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 --- diff --git a/package/network/services/hostapd/src/src/ap/ubus.c b/package/network/services/hostapd/src/src/ap/ubus.c index 1a5b29ed9ae..8e27606816f 100644 --- a/package/network/services/hostapd/src/src/ap/ubus.c +++ b/package/network/services/hostapd/src/src/ap/ubus.c @@ -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);