developer | dad89a3 | 2024-04-29 14:17:17 +0800 | [diff] [blame] | 1 | From 017795da32681ed521917cf446ddacf5d33f649d 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: Thu, 18 Apr 2024 18:08:48 +0800 |
| 4 | Subject: [PATCH 61/61] mtk: wifi: mac80211: fix radar trigger issue due to |
| 5 | refactoring to single wiphy |
| 6 | |
| 7 | Since we change to single wiphy, we cannot directly return during cac cancel if the link conf in local->interfaces list is not for 5G band. |
| 8 | local->interfaces might contain 2/5/6G sdata |
| 9 | |
developer | 66e89bc | 2024-04-23 14:50:01 +0800 | [diff] [blame] | 10 | Signed-off-by: StanleyYP Wang <StanleyYP.Wang@mediatek.com> |
| 11 | --- |
| 12 | net/mac80211/util.c | 2 +- |
| 13 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 14 | |
| 15 | diff --git a/net/mac80211/util.c b/net/mac80211/util.c |
| 16 | index 732232a..d030ebc 100644 |
| 17 | --- a/net/mac80211/util.c |
| 18 | +++ b/net/mac80211/util.c |
| 19 | @@ -3469,7 +3469,7 @@ void ieee80211_dfs_cac_cancel(struct ieee80211_local *local, unsigned int link_i |
| 20 | |
| 21 | if (link->conf->chanreq.oper.chan && |
| 22 | link->conf->chanreq.oper.chan->band != NL80211_BAND_5GHZ) |
| 23 | - return; |
| 24 | + continue; |
| 25 | |
| 26 | wiphy_delayed_work_cancel(local->hw.wiphy, |
| 27 | &link->dfs_cac_timer_work); |
| 28 | -- |
developer | dad89a3 | 2024-04-29 14:17:17 +0800 | [diff] [blame] | 29 | 2.18.0 |
developer | 66e89bc | 2024-04-23 14:50:01 +0800 | [diff] [blame] | 30 | |