summaryrefslogtreecommitdiffstats
path: root/net/wireless
diff options
context:
space:
mode:
authorDmitry Lebed <dlebed@quantenna.com>2018-03-01 12:39:16 +0300
committerJohannes Berg <johannes.berg@intel.com>2018-03-21 11:29:59 +0100
commit2cb021f5de55b1d158fa18b0215a4613c3289a82 (patch)
treedf63e5a5a89245aa4356cb9807f6e33a0759148c /net/wireless
parent1ad22fb5bb53ce6bf5377f25529c0a007c61c6f5 (diff)
downloadlinux-stable-2cb021f5de55b1d158fa18b0215a4613c3289a82.tar.gz
linux-stable-2cb021f5de55b1d158fa18b0215a4613c3289a82.tar.bz2
linux-stable-2cb021f5de55b1d158fa18b0215a4613c3289a82.zip
cfg80211/nl80211: add CAC_STARTED event
CAC_STARTED event is needed for DFS offload feature and should be generated by driver/HW if DFS_OFFLOAD is enabled. Signed-off-by: Dmitry Lebed <dlebed@quantenna.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/wireless')
-rw-r--r--net/wireless/mlme.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/net/wireless/mlme.c b/net/wireless/mlme.c
index bbb9907bfa86..6b6818dd76bd 100644
--- a/net/wireless/mlme.c
+++ b/net/wireless/mlme.c
@@ -888,14 +888,17 @@ void cfg80211_cac_event(struct net_device *netdev,
sizeof(struct cfg80211_chan_def));
queue_work(cfg80211_wq, &rdev->propagate_cac_done_wk);
cfg80211_sched_dfs_chan_update(rdev);
- break;
+ /* fall through */
case NL80211_RADAR_CAC_ABORTED:
+ wdev->cac_started = false;
+ break;
+ case NL80211_RADAR_CAC_STARTED:
+ wdev->cac_started = true;
break;
default:
WARN_ON(1);
return;
}
- wdev->cac_started = false;
nl80211_radar_notify(rdev, chandef, event, netdev, gfp);
}