From patchwork Mon Mar 25 15:26:59 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Karl Beldan X-Patchwork-Id: 2331921 Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 7982CDF24C for ; Mon, 25 Mar 2013 15:30:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758100Ab3CYPac (ORCPT ); Mon, 25 Mar 2013 11:30:32 -0400 Received: from mail-ee0-f46.google.com ([74.125.83.46]:39786 "EHLO mail-ee0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758081Ab3CYPa2 (ORCPT ); Mon, 25 Mar 2013 11:30:28 -0400 Received: by mail-ee0-f46.google.com with SMTP id e49so3243234eek.5 for ; Mon, 25 Mar 2013 08:30:27 -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=sP29DYTDgBgdRsXJ3EiNZINIGA5/50qujSLpbjfyJ3Q=; b=QSETyK2FVfMBMW+akYT+K0igmxUKfSelXZRP2Azn7s5zD23epjiK9hpegCRH92al7n Bi4qgO4EH6kMQ2auSnOmqvr2PJSUmqS/6BlyIcF3VwDQrNYErMJyznPIKZzP983loP4R n69GYxF5tSuKOw1xH3B47RTzbGUIXAm/1PWv2ioF0ARmvE/FAEaaKOtdse9qvGc8qqIq V2FLb6L2XfefPV8Jf53PX49V7r0auxspIj1S72PNlAWfddUS0l8UgZomagOghas5NVia PV+XvLvCAzMXa+yesSOtRTkgfJRztM2P4uLp7sswxS0VirRKG7X3KK2bchNkwi71lGY/ B4cg== X-Received: by 10.14.182.72 with SMTP id n48mr8644510eem.3.1364225427108; Mon, 25 Mar 2013 08:30:27 -0700 (PDT) Received: from magnum.frso.rivierawaves.com (vpn.rivierawaves.com. [91.151.119.162]) by mx.google.com with ESMTPS id bc1sm8337430eeb.11.2013.03.25.08.30.25 (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 25 Mar 2013 08:30:26 -0700 (PDT) From: Karl Beldan To: Johannes Berg Cc: linux-wireless , Karl Beldan , Karl Beldan Subject: [PATCH 3/3] mac80211_hwsim: advertise VHT support also when channels == 1 Date: Mon, 25 Mar 2013 16:26:59 +0100 Message-Id: <1364225219-18473-4-git-send-email-karl.beldan@gmail.com> X-Mailer: git-send-email 1.7.10.GIT 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 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 file changed, 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 |