Skip to content
Snippets Groups Projects
Commit 9cab3151 authored by Johannes Berg's avatar Johannes Berg
Browse files

cfg80211: adjacent 80+80 MHz channel segments are invalid


In that case, it's really a 160 MHz channel, so disallow
this configuration.

Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent 75de9113
No related branches found
No related tags found
No related merge requests found
......@@ -76,6 +76,10 @@ bool cfg80211_chandef_valid(const struct cfg80211_chan_def *chandef)
return false;
if (!chandef->center_freq2)
return false;
/* adjacent is not allowed -- that's a 160 MHz channel */
if (chandef->center_freq1 - chandef->center_freq2 == 80 ||
chandef->center_freq2 - chandef->center_freq1 == 80)
return false;
break;
case NL80211_CHAN_WIDTH_80:
if (chandef->center_freq1 != control_freq + 30 &&
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment