mac80211: let drivers not supporting channel contexts use VHT
authorKarl Beldan <karl.beldan@rivierawaves.com>
Mon, 25 Mar 2013 15:26:58 +0000 (16:26 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 8 Apr 2013 07:16:44 +0000 (09:16 +0200)
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>
net/mac80211/main.c

index a16b037c9d34526bcf8972b28fd1095187a04445..52136fd5ba97b63701e70acc1650ded849fcac3b 100644 (file)
@@ -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;