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

Johannes Berg johannes at sipsolutions.net
Thu May 7 10:21:38 PDT 2026


From: Johannes Berg <johannes.berg at 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 at intel.com>
---
 src/ap/ieee802_11_eht.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

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;
-- 
2.53.0




More information about the Hostap mailing list