blob: 914e7add9df6047aabf4798e39b9bc8945be2292 [file] [log] [blame]
From 4fc496233d06ceb3c162fa4a474c9bf8bf2ae909 Mon Sep 17 00:00:00 2001
From: StanleyYP Wang <StanleyYP.Wang@mediatek.com>
Date: Mon, 20 Feb 2023 11:01:18 +0800
Subject: [PATCH 026/126] mtk: hostapd: Fix sending wrong VHT operation IE in
CSA while using ZWDFS
Signed-off-by: StanleyYP Wang <StanleyYP.Wang@mediatek.com>
---
src/ap/dfs.c | 14 +++++++++-----
1 file changed, 9 insertions(+), 5 deletions(-)
diff --git a/src/ap/dfs.c b/src/ap/dfs.c
index 86598a18a..aaaea0edc 100644
--- a/src/ap/dfs.c
+++ b/src/ap/dfs.c
@@ -1130,6 +1130,14 @@ static int
hostapd_dfs_start_channel_switch_background(struct hostapd_iface *iface)
{
u8 current_vht_oper_chwidth = hostapd_get_oper_chwidth(iface->conf);
+ int ret;
+
+ ret = hostapd_dfs_request_channel_switch(iface, iface->radar_background.channel,
+ iface->radar_background.freq,
+ iface->radar_background.secondary_channel,
+ current_vht_oper_chwidth,
+ iface->radar_background.centr_freq_seg0_idx,
+ iface->radar_background.centr_freq_seg1_idx);
iface->conf->channel = iface->radar_background.channel;
iface->freq = iface->radar_background.freq;
@@ -1142,11 +1150,7 @@ hostapd_dfs_start_channel_switch_background(struct hostapd_iface *iface)
hostapd_dfs_update_background_chain(iface);
- return hostapd_dfs_request_channel_switch(
- iface, iface->conf->channel, iface->freq,
- iface->conf->secondary_channel, current_vht_oper_chwidth,
- hostapd_get_oper_centr_freq_seg0_idx(iface->conf),
- hostapd_get_oper_centr_freq_seg1_idx(iface->conf));
+ return ret;
}
--
2.18.0