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

Commit 7948c49a authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "cfg80211: Bypass checkin the CHAN_RADAR if DFS_OFFLOAD is enabled"

parents 2e3a5ec7 6efa255a
Loading
Loading
Loading
Loading
+9 −2
Original line number Diff line number Diff line
@@ -592,10 +592,17 @@ static bool cfg80211_secondary_chans_ok(struct wiphy *wiphy,

	for (freq = start_freq; freq <= end_freq; freq += 20) {
		c = ieee80211_get_channel(wiphy, freq);
		if (!c || c->flags & prohibited_flags)

		if (!c)
			return false;

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

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