summaryrefslogtreecommitdiff
path: root/net/wireless/mlme.c
diff options
context:
space:
mode:
authorDmitry Lebed <dlebed@quantenna.com>2018-03-26 16:36:31 +0300
committerJohannes Berg <johannes.berg@intel.com>2018-03-29 11:21:16 +0300
commit850964519a65a96aa8231ff31e28f30c2633484d (patch)
treef223ab1f531b95266b28efe23949796bb5db68fc /net/wireless/mlme.c
parent97f5f4254a61d7a104b5e609a6a0d9a10c73d29e (diff)
downloadlinux-850964519a65a96aa8231ff31e28f30c2633484d.tar.xz
cfg80211: fix CAC_STARTED event handling
Exclude CAC_STARTED event from !wdev->cac_started check, since cac_started will be set later in the same function. Signed-off-by: Dmitry Lebed <dlebed@quantenna.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/wireless/mlme.c')
-rw-r--r--net/wireless/mlme.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/wireless/mlme.c b/net/wireless/mlme.c
index 6b6818dd76bd..12b3edf70a7b 100644
--- a/net/wireless/mlme.c
+++ b/net/wireless/mlme.c
@@ -872,7 +872,7 @@ void cfg80211_cac_event(struct net_device *netdev,
trace_cfg80211_cac_event(netdev, event);
- if (WARN_ON(!wdev->cac_started))
+ if (WARN_ON(!wdev->cac_started && event != NL80211_RADAR_CAC_STARTED))
return;
if (WARN_ON(!wdev->chandef.chan))