]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
AP MLD: Make BSS parameter change variable
authorIlan Peer <ilan.peer@intel.com>
Mon, 20 Nov 2023 23:51:22 +0000 (01:51 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 25 Nov 2023 11:41:21 +0000 (13:41 +0200)
As a preparation to support link removal, make the BSS parameter
change count variable.

Signed-off-by: Ilan Peer <ilan.peer@intel.com>
hostapd/main.c
src/ap/hostapd.h
src/ap/ieee802_11_eht.c

index aac2a81deac2eb3d2b82204535d365d43f0aafd1..fcb01f60e104b102455261c7763868e5a159f601 100644 (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,
index 2994b2788c2db2e29ec93885eace535ba3bbe213..6dbe569cb796fca559497a6ce2b85cba08b33033 100644 (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 */
 };
 
 
index d3c1f20f4bef34d18eb19a85906ab8f3bbcb35e8..dce2acf74147f21d5563792de73e8eabf834d2f6 100644 (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) {