blob: 8e19d75a8d4f40480969eb95fcd1aa0d71d60c76 [file] [log] [blame]
developerdad89a32024-04-29 14:17:17 +08001From 017795da32681ed521917cf446ddacf5d33f649d Mon Sep 17 00:00:00 2001
developer66e89bc2024-04-23 14:50:01 +08002From: StanleyYP Wang <StanleyYP.Wang@mediatek.com>
3Date: Thu, 18 Apr 2024 18:08:48 +0800
4Subject: [PATCH 61/61] mtk: wifi: mac80211: fix radar trigger issue due to
5 refactoring to single wiphy
6
7Since 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.
8local->interfaces might contain 2/5/6G sdata
9
developer66e89bc2024-04-23 14:50:01 +080010Signed-off-by: StanleyYP Wang <StanleyYP.Wang@mediatek.com>
11---
12 net/mac80211/util.c | 2 +-
13 1 file changed, 1 insertion(+), 1 deletion(-)
14
15diff --git a/net/mac80211/util.c b/net/mac80211/util.c
16index 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--
developerdad89a32024-04-29 14:17:17 +0800292.18.0
developer66e89bc2024-04-23 14:50:01 +080030