blob: 4fa5b6f847962ed638036f9f8edfce520a705485 [file] [log] [blame]
developer66e89bc2024-04-23 14:50:01 +08001From bcb603194f7df4fd3060ed6a13a2e4da2715d959 Mon Sep 17 00:00:00 2001
2From: Michael-CY Lee <michael-cy.lee@mediatek.com>
3Date: Tue, 26 Dec 2023 08:05:41 +0800
4Subject: [PATCH 086/104] mtk: hostapd: add mld_primary option
5
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
13index 7bc19479d..e9caa45f3 100644
14--- a/hostapd/config_file.c
15+++ b/hostapd/config_file.c
16@@ -5349,6 +5349,8 @@ static int hostapd_config_fill(struct hostapd_config *conf,
17 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
26index 7f48c71f5..1f686550e 100644
27--- a/src/ap/ap_config.h
28+++ b/src/ap/ap_config.h
29@@ -966,6 +966,9 @@ struct hostapd_bss_config {
30 /* 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--
402.39.2
41