summaryrefslogtreecommitdiffstats
path: root/net/wireless/chan.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/wireless/chan.c')
-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 2db713d18f71..7dc1bbd0888f 100644
--- a/net/wireless/chan.c
+++ b/net/wireless/chan.c
@@ -6,6 +6,7 @@
6 * 6 *
7 * Copyright 2009 Johannes Berg <johannes@sipsolutions.net> 7 * Copyright 2009 Johannes Berg <johannes@sipsolutions.net>
8 * Copyright 2013-2014 Intel Mobile Communications GmbH 8 * Copyright 2013-2014 Intel Mobile Communications GmbH
9 * Copyright 2018 Intel Corporation
9 */ 10 */
10 11
11#include <linux/export.h> 12#include <linux/export.h>
@@ -747,6 +748,7 @@ bool cfg80211_chandef_usable(struct wiphy *wiphy,
747 case NL80211_CHAN_WIDTH_20: 748 case NL80211_CHAN_WIDTH_20:
748 if (!ht_cap->ht_supported) 749 if (!ht_cap->ht_supported)
749 return false; 750 return false;
751 /* fall through */
750 case NL80211_CHAN_WIDTH_20_NOHT: 752 case NL80211_CHAN_WIDTH_20_NOHT:
751 prohibited_flags |= IEEE80211_CHAN_NO_20MHZ; 753 prohibited_flags |= IEEE80211_CHAN_NO_20MHZ;
752 width = 20; 754 width = 20;
@@ -769,6 +771,7 @@ bool cfg80211_chandef_usable(struct wiphy *wiphy,
769 cap = vht_cap->cap & IEEE80211_VHT_CAP_SUPP_CHAN_WIDTH_MASK; 771 cap = vht_cap->cap & IEEE80211_VHT_CAP_SUPP_CHAN_WIDTH_MASK;
770 if (cap != IEEE80211_VHT_CAP_SUPP_CHAN_WIDTH_160_80PLUS80MHZ) 772 if (cap != IEEE80211_VHT_CAP_SUPP_CHAN_WIDTH_160_80PLUS80MHZ)
771 return false; 773 return false;
774 /* fall through */
772 case NL80211_CHAN_WIDTH_80: 775 case NL80211_CHAN_WIDTH_80:
773 if (!vht_cap->vht_supported) 776 if (!vht_cap->vht_supported)
774 return false; 777 return false;