blob: 4fa5b6f847962ed638036f9f8edfce520a705485 [file] [log] [blame]
From bcb603194f7df4fd3060ed6a13a2e4da2715d959 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 086/104] mtk: hostapd: add mld_primary option
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