Skip to content

Commit

Permalink
cfg80211: check no-OFDM flag for channels wider than 20 MHz
Browse files Browse the repository at this point in the history
For channels wider than 20 MHz OFDM will be used, so when
checking whether or not a channel is usable, check for the
no-OFDM flag if the channel is wider than 20 MHz.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
  • Loading branch information
Johannes Berg committed Dec 4, 2012
1 parent 2f91a96 commit a6662db
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions net/wireless/chan.c
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,9 @@ bool cfg80211_chandef_usable(struct wiphy *wiphy,

/* TODO: missing regulatory check on 80/160 bandwidth */

if (width > 20)
prohibited_flags |= IEEE80211_CHAN_NO_OFDM;

if (!cfg80211_secondary_chans_ok(wiphy, chandef->center_freq1,
width, prohibited_flags))
return false;
Expand Down

0 comments on commit a6662db

Please sign in to comment.