]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
AP MLD: Set DTIM information properly in per-STA profile
authorKarthikeyan Kathirvel <quic_kathirve@quicinc.com>
Mon, 1 Apr 2024 12:53:02 +0000 (18:23 +0530)
committerJouni Malinen <j@w1.fi>
Mon, 15 Apr 2024 09:04:01 +0000 (12:04 +0300)
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 <quic_kathirve@quicinc.com>
Signed-off-by: Govindaraj Saminathan <quic_gsaminat@quicinc.com>
src/ap/ieee802_11_eht.c

index 7365057adb00fbf718f876b56b778d83f6f18a66..f553766e534e75e7adc3cc4a842dfad71392b2ee 100644 (file)
@@ -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);