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>
This commit is contained in:
parent
97f5f4254a
commit
850964519a
1 changed files with 1 additions and 1 deletions
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue