summaryrefslogtreecommitdiff
path: root/net/wireless
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2022-06-27 13:49:03 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-08-17 16:16:20 +0300
commit4c94e37453ea293ab3196bed6d2b1b0e733518f0 (patch)
tree8bdaa47720979b3b9ddd3c21cf7664baa3820b31 /net/wireless
parent07f8ea3000f302759c32496cbb81403f6db676ed (diff)
downloadlinux-4c94e37453ea293ab3196bed6d2b1b0e733518f0.tar.xz
wifi: cfg80211: remove chandef check in cfg80211_cac_event()
commit d6f671c8a339d5b655acfacb8be6918c744fbabf upstream. The current check only worked for AP mode, but we can do radar detection in mesh as well (for example). We could try to check this using wdev_chandef(), but we also don't really care since the chandef is passed in and we have no need to use it anymore (since we added the argument in commit d2859df5e7f0 ("cfg80211/mac80211: DFS setup chandef for cac event")). Change-Id: I856e4344d5e64ff4d2eead0b4c53b11f264be9b8 Fixes: 7b0a0e3c3a88 ("wifi: cfg80211: do some rework towards MLO link APIs") Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/wireless')
-rw-r--r--net/wireless/mlme.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/net/wireless/mlme.c b/net/wireless/mlme.c
index fab2d6206cdd..b9204d0f1e55 100644
--- a/net/wireless/mlme.c
+++ b/net/wireless/mlme.c
@@ -955,9 +955,6 @@ void cfg80211_cac_event(struct net_device *netdev,
if (WARN_ON(!wdev->cac_started && event != NL80211_RADAR_CAC_STARTED))
return;
- if (WARN_ON(!wdev->links[0].ap.chandef.chan))
- return;
-
switch (event) {
case NL80211_RADAR_CAC_FINISHED:
timeout = wdev->cac_start_time +