AP MLD: Make BSS parameter change variable

As a preparation to support link removal, make the BSS parameter
change count variable.

Signed-off-by: Ilan Peer <ilan.peer@intel.com>
This commit is contained in:
Ilan Peer 2023-11-21 01:51:22 +02:00 committed by Jouni Malinen
parent 9160540ec3
commit 73a6f5c37e
3 changed files with 8 additions and 3 deletions

View file

@ -338,6 +338,9 @@ setup_mld:
return -1;
}
/* Initialize the BSS parameter change to 1 */
hapd->eht_mld_bss_param_change = 1;
wpa_printf(MSG_DEBUG,
"MLD: Set link_id=%u, mld_addr=" MACSTR
", own_addr=" MACSTR,

View file

@ -468,6 +468,10 @@ struct hostapd_data {
#ifdef CONFIG_CTRL_IFACE_UDP
unsigned char ctrl_iface_cookie[CTRL_IFACE_COOKIE_LEN];
#endif /* CONFIG_CTRL_IFACE_UDP */
#ifdef CONFIG_IEEE80211BE
u8 eht_mld_bss_param_change;
#endif /* CONFIG_IEEE80211BE */
};

View file

@ -563,9 +563,7 @@ u8 * hostapd_eid_eht_basic_ml(struct hostapd_data *hapd, u8 *eid,
wpabuf_put_le16(buf, link_bss->conf->dtim_period);
/* BSS Parameters Change Count */
/* TODO: 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);
/* Fragment the sub element if needed */
if (total_len <= 255) {