From patchwork Mon Mar 25 20:51:45 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Karl Beldan X-Patchwork-Id: 2333541 Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 82BB63FC54 for ; Mon, 25 Mar 2013 20:52:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932292Ab3CYUwZ (ORCPT ); Mon, 25 Mar 2013 16:52:25 -0400 Received: from mail-we0-f181.google.com ([74.125.82.181]:35080 "EHLO mail-we0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758898Ab3CYUwV (ORCPT ); Mon, 25 Mar 2013 16:52:21 -0400 Received: by mail-we0-f181.google.com with SMTP id d7so245067wer.40 for ; Mon, 25 Mar 2013 13:52:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references; bh=o9TS6kv4SZ5gZe7vg2aCvD/P+hlVR56RfDmj7rSM/Kw=; b=04Jv22OOa4IHg0RIlOq5at9ZpglQ8oWcsj3SdFxOqLL7C/FIEWEYGRMRG6+fwlUbtG /xuTUZWu/jAGd2I6H6pfssinUILHyqrq+MuuBkLf2WIYGGrOlShEiPiWphiub3c/zy1u SbABB2SJVKGFzcZcAdQkPxK6UADnDwxzPHpOuC1y2TWh0BeNeW+UEnE7fQPSoQP16I3g nlB7oGW64744exrlHcAL3DH9yph62z95q197jcZ/LOLrLTvnXz0LqKINGhubczeWQcMK b2dtBH71+2njTq5agOhztor+DqKFjGBKwASiheJvCM2+pXHcDOrBYaldTgY6QA8+c20F 6Jyg== X-Received: by 10.180.80.35 with SMTP id o3mr28600675wix.9.1364244740637; Mon, 25 Mar 2013 13:52:20 -0700 (PDT) Received: from localhost.localdomain (ppp-seco11pa2-46-193-135.194.wb.wifirst.net. [46.193.135.194]) by mx.google.com with ESMTPS id h10sm24915991wic.8.2013.03.25.13.52.19 (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 25 Mar 2013 13:52:20 -0700 (PDT) From: Karl Beldan To: Johannes Berg Cc: linux-wireless , fengguang.wu@intel.com, Karl Beldan , Karl Beldan Subject: [PATCH v2 3/3] mac80211_hwsim: advertise VHT support also when channels == 1 Date: Mon, 25 Mar 2013 21:51:45 +0100 Message-Id: <1364244705-31108-4-git-send-email-karl.beldan@gmail.com> X-Mailer: git-send-email 1.7.9.dirty In-Reply-To: <1364244705-31108-1-git-send-email-karl.beldan@gmail.com> References: <1364244705-31108-1-git-send-email-karl.beldan@gmail.com> Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Karl Beldan Drivers can now advertise VHT support even if they don't use channel contexts. Signed-off-by: Karl Beldan --- drivers/net/wireless/mac80211_hwsim.c | 3 --- 1 files changed, 0 insertions(+), 3 deletions(-) diff --git a/drivers/net/wireless/mac80211_hwsim.c b/drivers/net/wireless/mac80211_hwsim.c index 4ac5486..70b6ce6 100644 --- a/drivers/net/wireless/mac80211_hwsim.c +++ b/drivers/net/wireless/mac80211_hwsim.c @@ -2310,9 +2310,6 @@ static int __init init_mac80211_hwsim(void) hw->wiphy->bands[band] = sband; - if (channels == 1) - continue; - sband->vht_cap.vht_supported = true; sband->vht_cap.cap = IEEE80211_VHT_CAP_MAX_MPDU_LENGTH_11454 |