Message ID | 1396445515-5808-3-git-send-email-rostislav.lisovy@fel.cvut.cz (mailing list archive) |
---|---|
State | Not Applicable, archived |
Headers | show |
diff --git a/net/wireless/chan.c b/net/wireless/chan.c index 78559b5..87e1576 100644 --- a/net/wireless/chan.c +++ b/net/wireless/chan.c @@ -531,12 +531,14 @@ bool cfg80211_chandef_usable(struct wiphy *wiphy, width = 5; break; case NL80211_CHAN_WIDTH_10: + prohibited_flags |= IEEE80211_CHAN_NO_10MHZ; width = 10; break; case NL80211_CHAN_WIDTH_20: if (!ht_cap->ht_supported) return false; case NL80211_CHAN_WIDTH_20_NOHT: + prohibited_flags |= IEEE80211_CHAN_NO_20MHZ; width = 20; break; case NL80211_CHAN_WIDTH_40:
Since there are frequency bands restricting maximum channel bandwidth to 5MHz or 10MHz, check the particular bandwidth flags in cfg80211_chandef_usable() to comply with the restrictions. Signed-off-by: Rostislav Lisovy <rostislav.lisovy@fel.cvut.cz> --- net/wireless/chan.c | 2 ++ 1 file changed, 2 insertions(+)