blob: b48516b7a8afc3037fdb10859b72e368175b5391 [file] [log] [blame]
From 9717b3c93581752f466da137223793fc751a1f5f Mon Sep 17 00:00:00 2001
From: Michael-CY Lee <michael-cy.lee@mediatek.com>
Date: Tue, 26 Dec 2023 08:05:41 +0800
Subject: [PATCH 67/69] mtk: hostapd: add mld_primary option
CR-Id: WCNCR00289305
Signed-off-by: Michael-CY Lee <michael-cy.lee@mediatek.com>
---
hostapd/config_file.c | 2 ++
src/ap/ap_config.h | 3 +++
2 files changed, 5 insertions(+)
diff --git a/hostapd/config_file.c b/hostapd/config_file.c
index 7bc19479d..e9caa45f3 100644
--- a/hostapd/config_file.c
+++ b/hostapd/config_file.c
@@ -5349,6 +5349,8 @@ static int hostapd_config_fill(struct hostapd_config *conf,
conf->punct_acs_threshold = val;
} else if (os_strcmp(buf, "mld_ap") == 0) {
bss->mld_ap = !!atoi(pos);
+ } else if (os_strcmp(buf, "mld_primary") == 0) {
+ bss->mld_primary = !!atoi(pos);
} else if (os_strcmp(buf, "mld_addr") == 0) {
if (hwaddr_aton(pos, bss->mld_addr)) {
wpa_printf(MSG_ERROR, "Line %d: Invalid mld_addr",
diff --git a/src/ap/ap_config.h b/src/ap/ap_config.h
index 7f48c71f5..1f686550e 100644
--- a/src/ap/ap_config.h
+++ b/src/ap/ap_config.h
@@ -966,6 +966,9 @@ struct hostapd_bss_config {
/* The AP is part of an AP MLD */
u8 mld_ap;
+ /* The AP is the primary AP of an AP MLD */
+ u8 mld_primary;
+
/* The MLD ID to which the AP MLD is affiliated with */
u8 mld_id;
--
2.39.2