blob: 87fe7acf6af926317c830e8b55855416fca4c09a [file] [log] [blame]
developer05f3b2b2024-08-19 19:17:34 +08001From cba099045780e4befb6d08db29e12549f5d8a83b Mon Sep 17 00:00:00 2001
developer66e89bc2024-04-23 14:50:01 +08002From: Michael-CY Lee <michael-cy.lee@mediatek.com>
3Date: Tue, 26 Dec 2023 08:05:41 +0800
developer05f3b2b2024-08-19 19:17:34 +08004Subject: [PATCH 066/126] mtk: hostapd: add mld_primary option
developer66e89bc2024-04-23 14:50:01 +08005
developer66e89bc2024-04-23 14:50:01 +08006Signed-off-by: Michael-CY Lee <michael-cy.lee@mediatek.com>
7---
8 hostapd/config_file.c | 2 ++
9 src/ap/ap_config.h | 3 +++
10 2 files changed, 5 insertions(+)
11
12diff --git a/hostapd/config_file.c b/hostapd/config_file.c
developer05f3b2b2024-08-19 19:17:34 +080013index 7ab2c6827..014ca4d3c 100644
developer66e89bc2024-04-23 14:50:01 +080014--- a/hostapd/config_file.c
15+++ b/hostapd/config_file.c
developer05f3b2b2024-08-19 19:17:34 +080016@@ -5462,6 +5462,8 @@ static int hostapd_config_fill(struct hostapd_config *conf,
developer66e89bc2024-04-23 14:50:01 +080017 conf->punct_acs_threshold = val;
18 } else if (os_strcmp(buf, "mld_ap") == 0) {
19 bss->mld_ap = !!atoi(pos);
20+ } else if (os_strcmp(buf, "mld_primary") == 0) {
21+ bss->mld_primary = !!atoi(pos);
22 } else if (os_strcmp(buf, "mld_addr") == 0) {
23 if (hwaddr_aton(pos, bss->mld_addr)) {
24 wpa_printf(MSG_ERROR, "Line %d: Invalid mld_addr",
25diff --git a/src/ap/ap_config.h b/src/ap/ap_config.h
developer05f3b2b2024-08-19 19:17:34 +080026index b66f79d31..413505c59 100644
developer66e89bc2024-04-23 14:50:01 +080027--- a/src/ap/ap_config.h
28+++ b/src/ap/ap_config.h
developer05f3b2b2024-08-19 19:17:34 +080029@@ -987,6 +987,9 @@ struct hostapd_bss_config {
developer66e89bc2024-04-23 14:50:01 +080030 /* The AP is part of an AP MLD */
31 u8 mld_ap;
32
33+ /* The AP is the primary AP of an AP MLD */
34+ u8 mld_primary;
35+
36 /* The MLD ID to which the AP MLD is affiliated with */
37 u8 mld_id;
38
39--
developer05f3b2b2024-08-19 19:17:34 +0800402.18.0
developer66e89bc2024-04-23 14:50:01 +080041