From 92fdb49b2e11aa4c56ad56270ee0e2b3f70032aa Mon Sep 17 00:00:00 2001 From: Karthikeyan Kathirvel Date: Mon, 1 Apr 2024 18:23:02 +0530 Subject: [PATCH] AP MLD: Set DTIM information properly in per-STA profile The DTIM information in the per-STA profile is set incorrectly. The DTIM period is set in the LSB octet of the DTIM Info subfield (2 octets), which is intended for the DTIM count. Fix this by setting the DTIM period and DTIM count information properly to the MSB and LSB octets of the DTIM Info subfield, respectively. Signed-off-by: Karthikeyan Kathirvel Signed-off-by: Govindaraj Saminathan --- src/ap/ieee802_11_eht.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ap/ieee802_11_eht.c b/src/ap/ieee802_11_eht.c index 7365057ad..f553766e5 100644 --- a/src/ap/ieee802_11_eht.c +++ b/src/ap/ieee802_11_eht.c @@ -589,7 +589,8 @@ static u8 * hostapd_eid_eht_basic_ml_common(struct hostapd_data *hapd, wpabuf_put_le64(buf, 0); /* DTIM Info */ - wpabuf_put_le16(buf, link_bss->conf->dtim_period); + wpabuf_put_u8(buf, 0); /* DTIM Count */ + wpabuf_put_u8(buf, link_bss->conf->dtim_period); /* BSS Parameters Change Count */ wpabuf_put_u8(buf, hapd->eht_mld_bss_param_change); -- 2.47.2