developer | 05f3b2b | 2024-08-19 19:17:34 +0800 | [diff] [blame] | 1 | From cba099045780e4befb6d08db29e12549f5d8a83b Mon Sep 17 00:00:00 2001 |
developer | 66e89bc | 2024-04-23 14:50:01 +0800 | [diff] [blame] | 2 | From: Michael-CY Lee <michael-cy.lee@mediatek.com> |
| 3 | Date: Tue, 26 Dec 2023 08:05:41 +0800 |
developer | 05f3b2b | 2024-08-19 19:17:34 +0800 | [diff] [blame] | 4 | Subject: [PATCH 066/126] mtk: hostapd: add mld_primary option |
developer | 66e89bc | 2024-04-23 14:50:01 +0800 | [diff] [blame] | 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 |
developer | 05f3b2b | 2024-08-19 19:17:34 +0800 | [diff] [blame] | 13 | index 7ab2c6827..014ca4d3c 100644 |
developer | 66e89bc | 2024-04-23 14:50:01 +0800 | [diff] [blame] | 14 | --- a/hostapd/config_file.c |
| 15 | +++ b/hostapd/config_file.c |
developer | 05f3b2b | 2024-08-19 19:17:34 +0800 | [diff] [blame] | 16 | @@ -5462,6 +5462,8 @@ static int hostapd_config_fill(struct hostapd_config *conf, |
developer | 66e89bc | 2024-04-23 14:50:01 +0800 | [diff] [blame] | 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 |
developer | 05f3b2b | 2024-08-19 19:17:34 +0800 | [diff] [blame] | 26 | index b66f79d31..413505c59 100644 |
developer | 66e89bc | 2024-04-23 14:50:01 +0800 | [diff] [blame] | 27 | --- a/src/ap/ap_config.h |
| 28 | +++ b/src/ap/ap_config.h |
developer | 05f3b2b | 2024-08-19 19:17:34 +0800 | [diff] [blame] | 29 | @@ -987,6 +987,9 @@ struct hostapd_bss_config { |
developer | 66e89bc | 2024-04-23 14:50:01 +0800 | [diff] [blame] | 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 | -- |
developer | 05f3b2b | 2024-08-19 19:17:34 +0800 | [diff] [blame] | 40 | 2.18.0 |
developer | 66e89bc | 2024-04-23 14:50:01 +0800 | [diff] [blame] | 41 | |