| From cba099045780e4befb6d08db29e12549f5d8a83b 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 066/126] 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 7ab2c6827..014ca4d3c 100644 |
| --- a/hostapd/config_file.c |
| +++ b/hostapd/config_file.c |
| @@ -5462,6 +5462,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 b66f79d31..413505c59 100644 |
| --- a/src/ap/ap_config.h |
| +++ b/src/ap/ap_config.h |
| @@ -987,6 +987,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.18.0 |
| |