Commit 85096451 authored by Dmitry Lebed's avatar Dmitry Lebed Committed by Johannes Berg

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: default avatarDmitry Lebed <dlebed@quantenna.com>
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent 97f5f425
...@@ -872,7 +872,7 @@ void cfg80211_cac_event(struct net_device *netdev, ...@@ -872,7 +872,7 @@ void cfg80211_cac_event(struct net_device *netdev,
trace_cfg80211_cac_event(netdev, event); trace_cfg80211_cac_event(netdev, event);
if (WARN_ON(!wdev->cac_started)) if (WARN_ON(!wdev->cac_started && event != NL80211_RADAR_CAC_STARTED))
return; return;
if (WARN_ON(!wdev->chandef.chan)) if (WARN_ON(!wdev->chandef.chan))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment