Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 575f1369 authored by Dmitry Lebed's avatar Dmitry Lebed Committed by Gerrit - the friendly Code Review server
Browse files

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>
Change-Id: I7eb8f3e42221ae22e34b4edb06edcec7683eba33
Git-commit: 850964519a65a96aa8231ff31e28f30c2633484d
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/jberg/mac80211-next.git


CRs-fixed: 2265562
Signed-off-by: default avatarPeng Xu <pxu@codeaurora.org>
parent 0751b64e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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))