From: Karthikeyan Kathirvel Date: Mon, 1 Apr 2024 12:53:02 +0000 (+0530) Subject: AP MLD: Set DTIM information properly in per-STA profile X-Git-Tag: hostap_2_11~208 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=92fdb49b2e11aa4c56ad56270ee0e2b3f70032aa;p=thirdparty%2Fhostap.git 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 --- 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);