Return-path: Received: from mail-ee0-f47.google.com ([74.125.83.47]:36977 "EHLO mail-ee0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758038Ab3CYPa0 (ORCPT ); Mon, 25 Mar 2013 11:30:26 -0400 Received: by mail-ee0-f47.google.com with SMTP id t10so302666eei.34 for ; Mon, 25 Mar 2013 08:30:25 -0700 (PDT) From: Karl Beldan To: Johannes Berg Cc: linux-wireless , Karl Beldan , Karl Beldan Subject: [PATCH 2/3] Let drivers not supporting channel contexts use VHT Date: Mon, 25 Mar 2013 16:26:58 +0100 Message-Id: <1364225219-18473-3-git-send-email-karl.beldan@gmail.com> (sfid-20130325_163033_253611_969386E6) In-Reply-To: <1364225219-18473-1-git-send-email-karl.beldan@gmail.com> References: <1364225219-18473-1-git-send-email-karl.beldan@gmail.com> Sender: linux-wireless-owner@vger.kernel.org List-ID: From: Karl Beldan It is possible since the global hw config and local switched to cfg80211_chan_def. Signed-off-by: Karl Beldan --- net/mac80211/main.c | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/net/mac80211/main.c b/net/mac80211/main.c index 25a87f4..4b2e654 100644 --- a/net/mac80211/main.c +++ b/net/mac80211/main.c @@ -838,22 +838,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; -- 1.7.10.GIT