AP MLD: Correctly set the BSS parameters change count in RNR

Set the current value instead of hardcoded 1.

Signed-off-by: Ilan Peer <ilan.peer@intel.com>
Signed-off-by: Andrei Otcheretianski <andrei.otcheretianski@intel.com>
This commit is contained in:
Ilan Peer 2023-12-25 11:57:09 +02:00 committed by Jouni Malinen
parent e7cf39b152
commit 2112f0572f

View file

@ -7575,14 +7575,16 @@ static bool hostapd_eid_rnr_bss(struct hostapd_data *hapd,
*len += RNR_TBTT_INFO_LEN; *len += RNR_TBTT_INFO_LEN;
} else { } else {
#ifdef CONFIG_IEEE80211BE #ifdef CONFIG_IEEE80211BE
u8 param_ch = hapd->eht_mld_bss_param_change;
if (reporting_hapd->conf->mld_ap && if (reporting_hapd->conf->mld_ap &&
bss->conf->mld_id == reporting_hapd->conf->mld_id) bss->conf->mld_id == reporting_hapd->conf->mld_id)
*eid++ = 0; *eid++ = 0;
else else
*eid++ = hapd->conf->mld_id; *eid++ = hapd->conf->mld_id;
*eid++ = hapd->mld_link_id | (1 << 4); *eid++ = hapd->mld_link_id | ((param_ch & 0xF) << 4);
*eid = 0; *eid = (param_ch >> 4) & 0xF;
#ifdef CONFIG_TESTING_OPTIONS #ifdef CONFIG_TESTING_OPTIONS
if (hapd->conf->mld_indicate_disabled) if (hapd->conf->mld_indicate_disabled)
*eid |= RNR_TBTT_INFO_MLD_PARAM2_LINK_DISABLED; *eid |= RNR_TBTT_INFO_MLD_PARAM2_LINK_DISABLED;