aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/main.c
diff options
context:
space:
mode:
authorKarl Beldan <karl.beldan@rivierawaves.com>2013-03-25 16:26:58 +0100
committerJohannes Berg <johannes.berg@intel.com>2013-04-08 09:16:44 +0200
commitd0e6c21acdd4f38ad8c9644f6321b4746e18e121 (patch)
tree2c9a7a9b50026962bf6194aa997e48fcd4865a6f /net/mac80211/main.c
parentmac80211: Use a cfg80211_chan_def in ieee80211_hw_conf_chan (diff)
downloadlinux-dev-d0e6c21acdd4f38ad8c9644f6321b4746e18e121.tar.xz
linux-dev-d0e6c21acdd4f38ad8c9644f6321b4746e18e121.zip
mac80211: let drivers not supporting channel contexts use VHT
It is possible since the global hw config and local switched to cfg80211_chan_def. Signed-off-by: Karl Beldan <karl.beldan@rivierawaves.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/main.c')
-rw-r--r--net/mac80211/main.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/net/mac80211/main.c b/net/mac80211/main.c
index a16b037c9d34..52136fd5ba97 100644
--- a/net/mac80211/main.c
+++ b/net/mac80211/main.c
@@ -840,22 +840,10 @@ int ieee80211_register_hw(struct ieee80211_hw *hw)
if (supp_ht)
local->scan_ies_len += 2 + sizeof(struct ieee80211_ht_cap);
- if (supp_vht) {
+ if (supp_vht)
local->scan_ies_len +=
2 + sizeof(struct ieee80211_vht_cap);
- /*
- * (for now at least), drivers wanting to use VHT must
- * support channel contexts, as they contain all the
- * necessary VHT information and the global hw config
- * doesn't (yet)
- */
- if (WARN_ON(!local->use_chanctx)) {
- result = -EINVAL;
- goto fail_wiphy_register;
- }
- }
-
if (!local->ops->hw_scan) {
/* For hw_scan, driver needs to set these up. */
local->hw.wiphy->max_scan_ssids = 4;