blob: 76d6e0b09f15176d70036705dd7a4dbca2b6850c [file] [log] [blame]
developere35b8e42023-10-16 11:04:00 +08001From f0e980941ebf54811c89881ac1ea21f318751401 Mon Sep 17 00:00:00 2001
developer52278a12023-03-02 20:22:29 +08002From: StanleyYP Wang <StanleyYP.Wang@mediatek.com>
3Date: Mon, 20 Feb 2023 11:01:18 +0800
developere35b8e42023-10-16 11:04:00 +08004Subject: [PATCH 16/38] hostapd: mtk: Fix sending wrong VHT operation IE in CSA
developerd5789dc2023-03-27 11:22:06 +08005 while using ZWDFS
developer52278a12023-03-02 20:22:29 +08006
7Signed-off-by: StanleyYP Wang <StanleyYP.Wang@mediatek.com>
8---
9 src/ap/dfs.c | 14 +++++++++-----
10 1 file changed, 9 insertions(+), 5 deletions(-)
11
12diff --git a/src/ap/dfs.c b/src/ap/dfs.c
developere35b8e42023-10-16 11:04:00 +080013index 0a8486a..cfc3508 100644
developer52278a12023-03-02 20:22:29 +080014--- a/src/ap/dfs.c
15+++ b/src/ap/dfs.c
developere35b8e42023-10-16 11:04:00 +080016@@ -1120,6 +1120,14 @@ static int
developer52278a12023-03-02 20:22:29 +080017 hostapd_dfs_start_channel_switch_background(struct hostapd_iface *iface)
18 {
19 u8 current_vht_oper_chwidth = hostapd_get_oper_chwidth(iface->conf);
20+ int ret;
21+
22+ ret = hostapd_dfs_request_channel_switch(iface, iface->radar_background.channel,
23+ iface->radar_background.freq,
24+ iface->radar_background.secondary_channel,
25+ current_vht_oper_chwidth,
26+ iface->radar_background.centr_freq_seg0_idx,
27+ iface->radar_background.centr_freq_seg1_idx);
28
29 iface->conf->channel = iface->radar_background.channel;
30 iface->freq = iface->radar_background.freq;
developere35b8e42023-10-16 11:04:00 +080031@@ -1132,11 +1140,7 @@ hostapd_dfs_start_channel_switch_background(struct hostapd_iface *iface)
developer52278a12023-03-02 20:22:29 +080032
33 hostpad_dfs_update_background_chain(iface);
34
35- return hostapd_dfs_request_channel_switch(
36- iface, iface->conf->channel, iface->freq,
37- iface->conf->secondary_channel, current_vht_oper_chwidth,
38- hostapd_get_oper_centr_freq_seg0_idx(iface->conf),
39- hostapd_get_oper_centr_freq_seg1_idx(iface->conf));
40+ return ret;
41 }
42
43
44--
developerdfb50982023-09-11 13:34:36 +0800452.18.0
developer52278a12023-03-02 20:22:29 +080046