diff options
author | Karl Beldan <karl.beldan@rivierawaves.com> | 2013-03-25 11:26:58 -0400 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2013-04-08 03:16:44 -0400 |
commit | d0e6c21acdd4f38ad8c9644f6321b4746e18e121 (patch) | |
tree | 2c9a7a9b50026962bf6194aa997e48fcd4865a6f /net/mac80211/main.c | |
parent | 675a0b049abf6edf30f8dd84c5610b6edc2296c8 (diff) |
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.c | 14 |
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) | |||
840 | if (supp_ht) | 840 | if (supp_ht) |
841 | local->scan_ies_len += 2 + sizeof(struct ieee80211_ht_cap); | 841 | local->scan_ies_len += 2 + sizeof(struct ieee80211_ht_cap); |
842 | 842 | ||
843 | if (supp_vht) { | 843 | if (supp_vht) |
844 | local->scan_ies_len += | 844 | local->scan_ies_len += |
845 | 2 + sizeof(struct ieee80211_vht_cap); | 845 | 2 + sizeof(struct ieee80211_vht_cap); |
846 | 846 | ||
847 | /* | ||
848 | * (for now at least), drivers wanting to use VHT must | ||
849 | * support channel contexts, as they contain all the | ||
850 | * necessary VHT information and the global hw config | ||
851 | * doesn't (yet) | ||
852 | */ | ||
853 | if (WARN_ON(!local->use_chanctx)) { | ||
854 | result = -EINVAL; | ||
855 | goto fail_wiphy_register; | ||
856 | } | ||
857 | } | ||
858 | |||
859 | if (!local->ops->hw_scan) { | 847 | if (!local->ops->hw_scan) { |
860 | /* For hw_scan, driver needs to set these up. */ | 848 | /* For hw_scan, driver needs to set these up. */ |
861 | local->hw.wiphy->max_scan_ssids = 4; | 849 | local->hw.wiphy->max_scan_ssids = 4; |