diff mbox series

[v2] AP: Correctly set the BSS parameters change count in RNR

Message ID 20231225095709.2837102-1-andrei.otcheretianski@intel.com
State Accepted
Headers show
Series [v2] AP: Correctly set the BSS parameters change count in RNR | expand

Commit Message

Andrei Otcheretianski Dec. 25, 2023, 9:57 a.m. UTC
From: Ilan Peer <ilan.peer@intel.com>

Signed-off-by: Ilan Peer <ilan.peer@intel.com>
Signed-off-by: Andrei Otcheretianski <andrei.otcheretianski@intel.com>
---
 src/ap/ieee802_11.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

Comments

Jouni Malinen Jan. 13, 2024, 7:07 p.m. UTC | #1
Thanks, applied.
diff mbox series

Patch

diff --git a/src/ap/ieee802_11.c b/src/ap/ieee802_11.c
index a939ad35e2..999cec5b29 100644
--- a/src/ap/ieee802_11.c
+++ b/src/ap/ieee802_11.c
@@ -7575,14 +7575,16 @@  static bool hostapd_eid_rnr_bss(struct hostapd_data *hapd,
 		*len += RNR_TBTT_INFO_LEN;
 	} else {
 #ifdef CONFIG_IEEE80211BE
+		u8 param_ch = hapd->eht_mld_bss_param_change;
+
 		if (reporting_hapd->conf->mld_ap &&
 		    bss->conf->mld_id == reporting_hapd->conf->mld_id)
 			*eid++ = 0;
 		else
 			*eid++ = hapd->conf->mld_id;
 
-		*eid++ = hapd->mld_link_id | (1 << 4);
-		*eid = 0;
+		*eid++ = hapd->mld_link_id | ((param_ch & 0xF) << 4);
+		*eid = (param_ch >> 4) & 0xF;
 #ifdef CONFIG_TESTING_OPTIONS
 		if (hapd->conf->mld_indicate_disabled)
 			*eid |= RNR_TBTT_INFO_MLD_PARAM2_LINK_DISABLED;