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

Commit 161ec3cc authored by Ryan Hsu's avatar Ryan Hsu Committed by Peng Xu
Browse files

cfg80211: Bypass checkin the CHAN_RADAR if DFS_OFFLOAD is enabled



When WIPHY_FLAG_DFS_OFFLOAD is defined, driver would take care the
DFS related operation, hence the kernel needs to ignore the DFS
states checking.

CRs-fixed: 1080548
Change-Id: I02fa5e3e25427c0ca474455fa2d2be9eb6ea4bd9
Signed-off-by: default avatarRyan Hsu <ryanhsu@codeaurora.org>
parent 974132c3
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -596,10 +596,12 @@ static bool cfg80211_secondary_chans_ok(struct wiphy *wiphy,

		if (!c)
			return false;
		/* check for radar flags */

		if ((!(wiphy->flags & WIPHY_FLAG_DFS_OFFLOAD)) &&
		    (prohibited_flags & c->flags & IEEE80211_CHAN_RADAR) &&
		    (c->dfs_state != NL80211_DFS_AVAILABLE))
		    (c->flags & prohibited_flags & IEEE80211_CHAN_RADAR))
			return false;

		if (c->flags & prohibited_flags & ~IEEE80211_CHAN_RADAR)
			return false;
	}
	return true;