]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
AP: Add some basic MLD configuration options
authorAndrei Otcheretianski <andrei.otcheretianski@intel.com>
Mon, 22 May 2023 19:33:32 +0000 (22:33 +0300)
committerJouni Malinen <j@w1.fi>
Tue, 6 Jun 2023 17:17:23 +0000 (20:17 +0300)
Signed-off-by: Andrei Otcheretianski <andrei.otcheretianski@intel.com>
hostapd/config_file.c
hostapd/hostapd.conf
src/ap/ap_config.h

index 2c29971b32b43be6b95ca28f268486875ae20b97..412ca8a9f89b521354f962694c7efdb472244675 100644 (file)
@@ -4772,6 +4772,10 @@ static int hostapd_config_fill(struct hostapd_config *conf,
                        return 1;
                }
                conf->punct_acs_threshold = val;
+       } else if (os_strcmp(buf, "mld_ap") == 0) {
+               bss->mld_ap = !!atoi(pos);
+       } else if (os_strcmp(buf, "mld_id") == 0) {
+               bss->mld_id = atoi(pos);
 #endif /* CONFIG_IEEE80211BE */
        } else {
                wpa_printf(MSG_ERROR,
index 5868bfde44de6bb84812a5638da2353268e0d9ae..30fb06d1c85c8229c7cc8ad84c5e9819952b359f 100644 (file)
@@ -1040,6 +1040,14 @@ wmm_ac_vo_acm=0
 # Default is 0, indicates that ACS algorithm should not puncture any channel.
 #punct_acs_threshold=75
 
+# AP MLD - Whether this AP is a part of an AP MLD
+# 0 = no (no MLO)
+# 1 = yes (MLO)
+#mld_ap=0
+
+# MLD ID - Affiliated MLD ID
+#mld_id=1
+
 ##### IEEE 802.1X-2004 related configuration ##################################
 
 # Require IEEE 802.1X authorization
index 63b9ef701a1fce8f8ca131c12162c6389b2f9be0..777aa5af0558eb85c04f2717f547809eab067539 100644 (file)
@@ -937,6 +937,14 @@ struct hostapd_bss_config {
        u8 rnr;
        char *config_id;
        bool xrates_supported;
+
+#ifdef CONFIG_IEEE80211BE
+       /* The AP is part of an AP MLD */
+       u8 mld_ap;
+
+       /* The MLD ID to which the AP MLD is affiliated with */
+       u8 mld_id;
+#endif /* CONFIG_IEEE80211BE */
 };
 
 /**