From patchwork Tue Jan 14 06:38:17 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Markowski X-Patchwork-Id: 3484361 Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 590EEC02DC for ; Tue, 14 Jan 2014 06:38:33 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9511E20181 for ; Tue, 14 Jan 2014 06:38:32 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 2C64D20154 for ; Tue, 14 Jan 2014 06:38:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751261AbaANGi3 (ORCPT ); Tue, 14 Jan 2014 01:38:29 -0500 Received: from mail-pd0-f180.google.com ([209.85.192.180]:35355 "EHLO mail-pd0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750777AbaANGi2 (ORCPT ); Tue, 14 Jan 2014 01:38:28 -0500 Received: by mail-pd0-f180.google.com with SMTP id q10so8447196pdj.39 for ; Mon, 13 Jan 2014 22:38:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tieto.com; s=google; h=from:to:cc:subject:date:message-id; bh=cPM1bvmRc7PilyIwNmVWVWY5IkUDntQzngrbtzFCGOw=; b=F6DtHPWLbea5PwyOP3kor3bsNKk5HuubcQmBigX1mNUGji+UJud/LfwiJYGwqpeXmx olxGyATDw84NEUEjXLBUpbBuSGR4P4dWhwpgqu1nHwcBKtP2fI4FQgjHk2Stzm+BtkAB c+6yK8IV7FmcA7CQcd5+NFIZzCHzjoxxv8oWg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=cPM1bvmRc7PilyIwNmVWVWY5IkUDntQzngrbtzFCGOw=; b=EQGbsQiPLpu9z9ZxEexAOsA93N/pkBFyFvqrtexSo5C0yN03PdO0XrlIeoN9o68M4a zWvsBZ2sdC99/quAHqiOtFelqV47wsGNPrqEZlfBr/LofotWtSdmbxy0JAllwu1w80RJ 6I/vyru14RMf23yPervTdVt2Shx5JHqQgVrQ9BhzQFr7yypPkc+2rQjMURkFivbv+Wi+ mtxOA7fZ0KxucTpFXImdeTdp95J+2bGwHG/GMjkOFKwRvT3c1jMqpaO98WdmX985AmHy MxikRYvKCPqKy7R93vPAxMvdeteRTVNSOmn0ZHO7A1ovBt64lgaeappUbmN8b33IJnyk uuzQ== X-Gm-Message-State: ALoCoQnHQbfrpUerAlwbgcIxnnxJPeKzSIAQjUiUD2YnB3v4CfX9duPRFBBZ7MKNx/6EgOk5TasGk/EmP9gCQwF9LekKt/T5A4tWW0mmRGiosPfejVLN3SQ= X-Received: by 10.66.65.134 with SMTP id x6mr34419267pas.12.1389681508090; Mon, 13 Jan 2014 22:38:28 -0800 (PST) Received: from E4300.nomadix.com ([115.248.19.66]) by mx.google.com with ESMTPSA id z10sm54910439pas.6.2014.01.13.22.38.22 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 13 Jan 2014 22:38:27 -0800 (PST) From: Bartosz Markowski To: ath10k@lists.infradead.org Cc: linux-wireless@vger.kernel.org, Bartosz Markowski Subject: [PATCH] ath10k: use VHT phymodes for 20/40MHz channels Date: Tue, 14 Jan 2014 12:08:17 +0530 Message-Id: <1389681497-18267-1-git-send-email-bartosz.markowski@tieto.com> X-Mailer: git-send-email 1.7.9.5 X-DomainID: tieto.com Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP chandef does not provide 11n / 11ac split. Use the highest phymodes for 20/40MHz channels, firmware can operate on. Signed-off-by: Bartosz Markowski --- drivers/net/wireless/ath/ath10k/mac.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/ath/ath10k/mac.c b/drivers/net/wireless/ath/ath10k/mac.c index 7aa6c4d..e0b1a2a 100644 --- a/drivers/net/wireless/ath/ath10k/mac.c +++ b/drivers/net/wireless/ath/ath10k/mac.c @@ -256,10 +256,10 @@ chan_to_phymode(const struct cfg80211_chan_def *chandef) phymode = MODE_11A; break; case NL80211_CHAN_WIDTH_20: - phymode = MODE_11NA_HT20; + phymode = MODE_11AC_VHT20; break; case NL80211_CHAN_WIDTH_40: - phymode = MODE_11NA_HT40; + phymode = MODE_11AC_VHT40; break; case NL80211_CHAN_WIDTH_80: phymode = MODE_11AC_VHT80;