projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
75de911
)
cfg80211: adjacent 80+80 MHz channel segments are invalid
author
Johannes Berg
<johannes.berg@intel.com>
Thu, 13 Dec 2012 23:19:08 +0000
(
00:19
+0100)
committer
Johannes Berg
<johannes.berg@intel.com>
Thu, 3 Jan 2013 12:01:32 +0000
(13:01 +0100)
In that case, it's really a 160 MHz channel, so disallow
this configuration.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/chan.c
patch
|
blob
|
blame
|
history
diff --git
a/net/wireless/chan.c
b/net/wireless/chan.c
index a7990bb165295bcefbd88c6396026e2db8b7fa38..396373f3ec260b96a178dce7e72c239cf78bdc51 100644
(file)
--- a/
net/wireless/chan.c
+++ b/
net/wireless/chan.c
@@
-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 &&