developer | 1d9da7d | 2023-04-15 12:45:34 +0800 | [diff] [blame^] | 1 | From 733a9401bcdc8b01fc7b914599da04d847d50417 Mon Sep 17 00:00:00 2001 |
developer | 60bc3ad | 2023-03-02 18:23:00 +0800 | [diff] [blame] | 2 | From: "himanshu.goyal" <himanshu.goyal@mediatek.com> |
developer | 76203de | 2023-03-17 14:34:34 +0800 | [diff] [blame] | 3 | Date: Fri, 17 Mar 2023 17:36:01 +0800 |
developer | ed7222c | 2023-04-14 07:19:52 +0800 | [diff] [blame] | 4 | Subject: [PATCH 14/17] nl80211: mtk: Mark DFS channel as available for CSA. |
developer | 60bc3ad | 2023-03-02 18:23:00 +0800 | [diff] [blame] | 5 | |
| 6 | --- |
| 7 | net/wireless/nl80211.c | 5 +++++ |
| 8 | 1 file changed, 5 insertions(+) |
| 9 | |
| 10 | diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c |
developer | 76203de | 2023-03-17 14:34:34 +0800 | [diff] [blame] | 11 | index a20aba5..62698c2 100644 |
developer | 60bc3ad | 2023-03-02 18:23:00 +0800 | [diff] [blame] | 12 | --- a/net/wireless/nl80211.c |
| 13 | +++ b/net/wireless/nl80211.c |
developer | 76203de | 2023-03-17 14:34:34 +0800 | [diff] [blame] | 14 | @@ -9620,6 +9620,11 @@ skip_beacons: |
| 15 | if (err) |
| 16 | goto free; |
developer | 60bc3ad | 2023-03-02 18:23:00 +0800 | [diff] [blame] | 17 | |
| 18 | + /* Use RADAR_BACKGROUND attribute here for skipping CAC */ |
| 19 | + if (info->attrs[NL80211_ATTR_RADAR_BACKGROUND]) { |
developer | 76203de | 2023-03-17 14:34:34 +0800 | [diff] [blame] | 20 | + cfg80211_set_dfs_state(&rdev->wiphy, ¶ms.chandef, NL80211_DFS_AVAILABLE); |
developer | 60bc3ad | 2023-03-02 18:23:00 +0800 | [diff] [blame] | 21 | + } |
| 22 | + |
developer | 76203de | 2023-03-17 14:34:34 +0800 | [diff] [blame] | 23 | if (!cfg80211_reg_can_beacon_relax(&rdev->wiphy, ¶ms.chandef, |
| 24 | wdev->iftype)) { |
| 25 | err = -EINVAL; |
developer | 60bc3ad | 2023-03-02 18:23:00 +0800 | [diff] [blame] | 26 | -- |
| 27 | 2.18.0 |
| 28 | |