From d6641a7679b7892b170c4d8c801ff1fe53188fb4 Mon Sep 17 00:00:00 2001
From: Andrei Otcheretianski <andrei.otcheretianski@intel.com>
Date: Mon, 22 May 2023 22:33:32 +0300
Subject: [PATCH 04/54] AP: Add some basic MLD configuration options

Signed-off-by: Andrei Otcheretianski <andrei.otcheretianski@intel.com>
---
 hostapd/config_file.c | 4 ++++
 src/ap/ap_config.h    | 8 ++++++++
 2 files changed, 12 insertions(+)

diff --git a/hostapd/config_file.c b/hostapd/config_file.c
index 2c29971b3..412ca8a9f 100644
--- a/hostapd/config_file.c
+++ b/hostapd/config_file.c
@@ -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,
diff --git a/src/ap/ap_config.h b/src/ap/ap_config.h
index 63b9ef701..e5099bd82 100644
--- a/src/ap/ap_config.h
+++ b/src/ap/ap_config.h
@@ -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 MLD AP */
+	u8 mld_ap;
+
+	/* The MLD ID to which the MLD AP is affiliated with */
+	u8 mld_id;
+#endif /* CONFIG_IEEE80211BE */
 };
 
 /**
-- 
2.39.2

