developer | 05f3b2b | 2024-08-19 19:17:34 +0800 | [diff] [blame^] | 1 | From 4fc496233d06ceb3c162fa4a474c9bf8bf2ae909 Mon Sep 17 00:00:00 2001 |
developer | 66e89bc | 2024-04-23 14:50:01 +0800 | [diff] [blame] | 2 | From: StanleyYP Wang <StanleyYP.Wang@mediatek.com> |
| 3 | Date: Mon, 20 Feb 2023 11:01:18 +0800 |
developer | 05f3b2b | 2024-08-19 19:17:34 +0800 | [diff] [blame^] | 4 | Subject: [PATCH 026/126] mtk: hostapd: Fix sending wrong VHT operation IE in |
developer | 66e89bc | 2024-04-23 14:50:01 +0800 | [diff] [blame] | 5 | CSA while using ZWDFS |
| 6 | |
| 7 | Signed-off-by: StanleyYP Wang <StanleyYP.Wang@mediatek.com> |
| 8 | --- |
| 9 | src/ap/dfs.c | 14 +++++++++----- |
| 10 | 1 file changed, 9 insertions(+), 5 deletions(-) |
| 11 | |
| 12 | diff --git a/src/ap/dfs.c b/src/ap/dfs.c |
developer | 05f3b2b | 2024-08-19 19:17:34 +0800 | [diff] [blame^] | 13 | index 86598a18a..aaaea0edc 100644 |
developer | 66e89bc | 2024-04-23 14:50:01 +0800 | [diff] [blame] | 14 | --- a/src/ap/dfs.c |
| 15 | +++ b/src/ap/dfs.c |
developer | 05f3b2b | 2024-08-19 19:17:34 +0800 | [diff] [blame^] | 16 | @@ -1130,6 +1130,14 @@ static int |
developer | 66e89bc | 2024-04-23 14:50:01 +0800 | [diff] [blame] | 17 | 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; |
developer | 05f3b2b | 2024-08-19 19:17:34 +0800 | [diff] [blame^] | 31 | @@ -1142,11 +1150,7 @@ hostapd_dfs_start_channel_switch_background(struct hostapd_iface *iface) |
developer | 66e89bc | 2024-04-23 14:50:01 +0800 | [diff] [blame] | 32 | |
| 33 | hostapd_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 | -- |
developer | 05f3b2b | 2024-08-19 19:17:34 +0800 | [diff] [blame^] | 45 | 2.18.0 |
developer | 66e89bc | 2024-04-23 14:50:01 +0800 | [diff] [blame] | 46 | |