developer | 66e89bc | 2024-04-23 14:50:01 +0800 | [diff] [blame] | 1 | From bcb603194f7df4fd3060ed6a13a2e4da2715d959 Mon Sep 17 00:00:00 2001 |
| 2 | From: Michael-CY Lee <michael-cy.lee@mediatek.com> |
| 3 | Date: Tue, 26 Dec 2023 08:05:41 +0800 |
| 4 | Subject: [PATCH 086/104] mtk: hostapd: add mld_primary option |
| 5 | |
developer | 66e89bc | 2024-04-23 14:50:01 +0800 | [diff] [blame] | 6 | Signed-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 | |
| 12 | diff --git a/hostapd/config_file.c b/hostapd/config_file.c |
| 13 | index 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", |
| 25 | diff --git a/src/ap/ap_config.h b/src/ap/ap_config.h |
| 26 | index 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 | -- |
| 40 | 2.39.2 |
| 41 | |