developer | f9b0021 | 2023-07-31 12:27:06 +0800 | [diff] [blame] | 1 | From f175ec97644841fb3a07cfbd965994bb7b09683c Mon Sep 17 00:00:00 2001 |
developer | 6ce3b61 | 2023-03-02 20:22:29 +0800 | [diff] [blame] | 2 | From: StanleyYP Wang <StanleyYP.Wang@mediatek.com> |
| 3 | Date: Mon, 20 Feb 2023 16:58:20 +0800 |
developer | f9b0021 | 2023-07-31 12:27:06 +0800 | [diff] [blame] | 4 | Subject: [PATCH 19/35] hostapd: mtk: Fix auto ht issue when switching to DFS |
| 5 | channel |
developer | 6ce3b61 | 2023-03-02 20:22:29 +0800 | [diff] [blame] | 6 | |
| 7 | Signed-off-by: StanleyYP Wang <StanleyYP.Wang@mediatek.com> |
| 8 | --- |
developer | 692ed9b | 2023-06-19 12:03:50 +0800 | [diff] [blame] | 9 | hostapd/ctrl_iface.c | 12 ++++++------ |
| 10 | 1 file changed, 6 insertions(+), 6 deletions(-) |
developer | 6ce3b61 | 2023-03-02 20:22:29 +0800 | [diff] [blame] | 11 | |
| 12 | diff --git a/hostapd/ctrl_iface.c b/hostapd/ctrl_iface.c |
developer | 692ed9b | 2023-06-19 12:03:50 +0800 | [diff] [blame] | 13 | index 61c9e80..c33b7a4 100644 |
developer | 6ce3b61 | 2023-03-02 20:22:29 +0800 | [diff] [blame] | 14 | --- a/hostapd/ctrl_iface.c |
| 15 | +++ b/hostapd/ctrl_iface.c |
developer | 692ed9b | 2023-06-19 12:03:50 +0800 | [diff] [blame] | 16 | @@ -2698,6 +2698,12 @@ static int hostapd_ctrl_iface_chan_switch(struct hostapd_iface *iface, |
developer | 6ce3b61 | 2023-03-02 20:22:29 +0800 | [diff] [blame] | 17 | break; |
| 18 | } |
| 19 | |
| 20 | + if (os_strstr(pos, " auto-ht")) { |
| 21 | + settings.freq_params.ht_enabled = iface->conf->ieee80211n; |
| 22 | + settings.freq_params.vht_enabled = iface->conf->ieee80211ac; |
| 23 | + settings.freq_params.he_enabled = iface->conf->ieee80211ax; |
| 24 | + } |
| 25 | + |
| 26 | if (settings.freq_params.center_freq1) |
| 27 | dfs_range += hostapd_is_dfs_overlap( |
| 28 | iface, bandwidth, settings.freq_params.center_freq1); |
developer | 692ed9b | 2023-06-19 12:03:50 +0800 | [diff] [blame] | 29 | @@ -2735,12 +2741,6 @@ static int hostapd_ctrl_iface_chan_switch(struct hostapd_iface *iface, |
developer | 6ce3b61 | 2023-03-02 20:22:29 +0800 | [diff] [blame] | 30 | return 0; |
| 31 | } |
| 32 | |
| 33 | - if (os_strstr(pos, " auto-ht")) { |
| 34 | - settings.freq_params.ht_enabled = iface->conf->ieee80211n; |
| 35 | - settings.freq_params.vht_enabled = iface->conf->ieee80211ac; |
| 36 | - settings.freq_params.he_enabled = iface->conf->ieee80211ax; |
| 37 | - } |
| 38 | - |
| 39 | for (i = 0; i < iface->num_bss; i++) { |
| 40 | |
| 41 | /* Save CHAN_SWITCH VHT, HE, and EHT config */ |
| 42 | -- |
| 43 | 2.18.0 |
| 44 | |