diff mbox series

[v3,11/12] AP: include correct EHT BSS parameter change count

Message ID 20260507192336.de74fd0bedef.Id565f0cddfd3216e09386dd57350a5f9f69503bf@changeid
State Accepted
Headers show
Series some UHR support | expand

Commit Message

Johannes Berg May 7, 2026, 5:21 p.m. UTC
From: Johannes Berg <johannes.berg@intel.com>

Set the correct value according to hapd->eht_mld_bss_param_change
in the multi-link element's common info rather than hard-coding
the value 1. Also use the correct link_bss in the per-STA profile.

Fixes: 73a6f5c37ec2 ("AP MLD: Make BSS parameter change variable")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
---
 src/ap/ieee802_11_eht.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
diff mbox series

Patch

diff --git a/src/ap/ieee802_11_eht.c b/src/ap/ieee802_11_eht.c
index d111e10fa174..6359303895c4 100644
--- a/src/ap/ieee802_11_eht.c
+++ b/src/ap/ieee802_11_eht.c
@@ -489,8 +489,7 @@  u8 * hostapd_eid_eht_basic_ml_common(struct hostapd_data *hapd,
 	/* Own Link ID */
 	wpabuf_put_u8(buf, hapd->mld_link_id);
 
-	/* Currently hard code the BSS Parameters Change Count to 0x1 */
-	wpabuf_put_u8(buf, 0x1);
+	wpabuf_put_u8(buf, hapd->eht_mld_bss_param_change);
 
 	wpa_printf(MSG_DEBUG, "MLD: EML Capabilities=0x%x",
 		   hapd->iface->mld_eml_capa);
@@ -594,7 +593,7 @@  u8 * hostapd_eid_eht_basic_ml_common(struct hostapd_data *hapd,
 
 		/* BSS Parameters Change Count */
 		if (include_bpcc)
-			wpabuf_put_u8(buf, hapd->eht_mld_bss_param_change);
+			wpabuf_put_u8(buf, link_bss->eht_mld_bss_param_change);
 
 		if (!link->resp_sta_profile)
 			continue;