blob: 847009735a5817b3ea6ab4e27efcea29415a04b9 [file] [log] [blame]
developer05f3b2b2024-08-19 19:17:34 +08001From af06ac5ac954a801dceb279fd42a5e7af88b4222 Mon Sep 17 00:00:00 2001
developer66e89bc2024-04-23 14:50:01 +08002From: StanleyYP Wang <StanleyYP.Wang@mediatek.com>
3Date: Thu, 27 Jul 2023 10:27:04 +0800
developer05f3b2b2024-08-19 19:17:34 +08004Subject: [PATCH 31/89] mtk: cfg80211: add background radar stop when
developer66e89bc2024-04-23 14:50:01 +08005 background channel is overlapped with operating channel
6
7Signed-off-by: StanleyYP Wang <StanleyYP.Wang@mediatek.com>
8---
9 net/wireless/nl80211.c | 4 ++++
10 1 file changed, 4 insertions(+)
11
12diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c
developer05f3b2b2024-08-19 19:17:34 +080013index 41e9f8d..6b03037 100644
developer66e89bc2024-04-23 14:50:01 +080014--- a/net/wireless/nl80211.c
15+++ b/net/wireless/nl80211.c
developer05f3b2b2024-08-19 19:17:34 +080016@@ -10201,6 +10201,10 @@ static int nl80211_start_radar_detection(struct sk_buff *skb,
17 wdev->links[link_id].cac_started = true;
18 wdev->links[link_id].cac_start_time = jiffies;
19 wdev->links[link_id].cac_time_ms = cac_time_ms;
developer66e89bc2024-04-23 14:50:01 +080020+ if (rdev->background_cac_started &&
21+ cfg80211_is_sub_chan(&chandef, rdev->background_radar_chandef.chan, false)) {
22+ cfg80211_stop_background_radar_detection(rdev->background_radar_wdev);
23+ }
24 }
25 unlock:
26 wiphy_unlock(wiphy);
27--
developer05f3b2b2024-08-19 19:17:34 +0800282.18.0
developer66e89bc2024-04-23 14:50:01 +080029