aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-rw-r--r--net/wireless/chan.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/wireless/chan.c b/net/wireless/chan.c
index b5f69831e31..a7990bb1652 100644
--- a/net/wireless/chan.c
+++ b/net/wireless/chan.c
@@ -265,6 +265,9 @@ bool cfg80211_chandef_usable(struct wiphy *wiphy,
265 265
266 /* TODO: missing regulatory check on 80/160 bandwidth */ 266 /* TODO: missing regulatory check on 80/160 bandwidth */
267 267
268 if (width > 20)
269 prohibited_flags |= IEEE80211_CHAN_NO_OFDM;
270
268 if (!cfg80211_secondary_chans_ok(wiphy, chandef->center_freq1, 271 if (!cfg80211_secondary_chans_ok(wiphy, chandef->center_freq1,
269 width, prohibited_flags)) 272 width, prohibited_flags))
270 return false; 273 return false;