Commit d3578b13 authored by Johannes Berg's avatar Johannes Berg Committed by Todd Kjos
Browse files

UPSTREAM: cfg80211: simplify cfg80211_chandef_valid()



There are a lot of duplicate checks in this function to
check the delta between the control channel and CF1.
With the addition of 320 MHz, this will become even more.
Simplify the code so that the common checks are done
only once for multiple bandwidths.

Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
Signed-off-by: default avatarLuca Coelho <luciano.coelho@intel.com>
Link: https://lore.kernel.org/r/iwlwifi.20211129152938.2d0240b07f11.I759e8e990f5386ba2b56ffb2488a8d4e16e22c1b@changeid


Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>

Bug: 215824523
(cherry picked from commit 3bb1ccc4)
Change-Id: I404920dc3e613455d933ab84947099d1c696c3fd
Signed-off-by: default avatarVeerendranath Jakkam <quic_vjakkam@quicinc.com>
parent 92d558f3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment