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:
parent
9160540ec3
commit
73a6f5c37e
3 changed files with 8 additions and 3 deletions
|
@ -338,6 +338,9 @@ setup_mld:
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Initialize the BSS parameter change to 1 */
|
||||||
|
hapd->eht_mld_bss_param_change = 1;
|
||||||
|
|
||||||
wpa_printf(MSG_DEBUG,
|
wpa_printf(MSG_DEBUG,
|
||||||
"MLD: Set link_id=%u, mld_addr=" MACSTR
|
"MLD: Set link_id=%u, mld_addr=" MACSTR
|
||||||
", own_addr=" MACSTR,
|
", own_addr=" MACSTR,
|
||||||
|
|
|
@ -468,6 +468,10 @@ struct hostapd_data {
|
||||||
#ifdef CONFIG_CTRL_IFACE_UDP
|
#ifdef CONFIG_CTRL_IFACE_UDP
|
||||||
unsigned char ctrl_iface_cookie[CTRL_IFACE_COOKIE_LEN];
|
unsigned char ctrl_iface_cookie[CTRL_IFACE_COOKIE_LEN];
|
||||||
#endif /* CONFIG_CTRL_IFACE_UDP */
|
#endif /* CONFIG_CTRL_IFACE_UDP */
|
||||||
|
|
||||||
|
#ifdef CONFIG_IEEE80211BE
|
||||||
|
u8 eht_mld_bss_param_change;
|
||||||
|
#endif /* CONFIG_IEEE80211BE */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -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);
|
wpabuf_put_le16(buf, link_bss->conf->dtim_period);
|
||||||
|
|
||||||
/* BSS Parameters Change Count */
|
/* BSS Parameters Change Count */
|
||||||
/* TODO: Currently hard code the BSS Parameters Change Count to
|
wpabuf_put_u8(buf, hapd->eht_mld_bss_param_change);
|
||||||
* 0x1 */
|
|
||||||
wpabuf_put_u8(buf, 0x1);
|
|
||||||
|
|
||||||
/* Fragment the sub element if needed */
|
/* Fragment the sub element if needed */
|
||||||
if (total_len <= 255) {
|
if (total_len <= 255) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue