From patchwork Fri Jun 9 11:07:50 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sven Eckelmann X-Patchwork-Id: 9778089 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 711056034B for ; Fri, 9 Jun 2017 11:08:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 61CA2285FB for ; Fri, 9 Jun 2017 11:08:39 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 54F0628609; Fri, 9 Jun 2017 11:08:39 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 113B8285FB for ; Fri, 9 Jun 2017 11:08:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=pTj5PZXuq+hbdH75vGCv6stId189tStcj387Q1wTJy8=; b=HfWPydcxPkXTsRcPqoZ8HlRg3Q udmd7It9zO+l+saRnGW6YyhsgDlKKZcU3JwDoIBRPMdf+IvBh5x2z5AnFVvETkfvcnKuAp3flAVPB 7Y/dSSz+9LvhnAFk2mRzw0wsBTZhdAuYJKol+wU+Kp//pz5Tw0rcYLRhChIbIy1ZgbfkwiraMI7Tu JJumBrenALcuwOSH4Z0H7nBeC8oXgh2maR+LjZblv1GTnSmik9zg+dJ6aLf4oOT1q+7HHmV++CCDc 1lUzw78E/DVrqX5x723nVRmR44XL8l8z9TaBz38M3PUfy08Qpw1HeSrl8ePcPZUbmnzCbGNThnHy5 NAD/g10A==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dJHmM-0002Sx-5g; Fri, 09 Jun 2017 11:08:34 +0000 Received: from mail-wr0-x22c.google.com ([2a00:1450:400c:c0c::22c]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dJHmH-0002Jd-Qc for ath10k@lists.infradead.org; Fri, 09 Jun 2017 11:08:32 +0000 Received: by mail-wr0-x22c.google.com with SMTP id q97so29171809wrb.2 for ; Fri, 09 Jun 2017 04:08:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=openmesh-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=0Y6vdmVBfyS+qNL6TXRUEx4z6IMYHGeAryQPLHNuMOs=; b=PEcTsju1ymwhMKiyt4W3aBCedu+QAj6Vzji2Tiz+47NonxnPKNcuxrbpwvBGWhTqmA FZ23JRggQb+mneRqxXDGuaSpUeeBMYW78uznBXz5e+rA5hDSsfUVdW77Ab1r398+d2qC /9XCyZ0hWcp6BUzfJw4cOfrJz3BsfYtY+w3O02gS1NUY4/fNkpPWRJr/1vlHinaTfD1y j7Y+8cLudbuf+2kYnEKWD6yh1vKjdhWZU/lPkxeMpsPRwSAu3JaA8sQFegiKPQMnhTGj OQHaRPAlI5LCN7RGYeIvRnQs/8gbCscaAD/89/NDLpWbedLh00KuA7qDIaEVUr69tV3j oVqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=0Y6vdmVBfyS+qNL6TXRUEx4z6IMYHGeAryQPLHNuMOs=; b=Xy2hSqt4+WpvMchYQVRRRC7eddkNawvyO5ITBpdurHxLNr3GH0XG4r6OviA4QOeq9v rTkTEFvFmyIeWV005dMsfqkz6cR6xZDeScX4jvcbgeIqNe8cQhOFe40VM2n/GnNRDjDc 4IhXcxGBINp25Q1mU1VIbd4mFzr2QJmkDwBHojQIG9Qf0IXHWyt0gvTG2mN1OSgaHerr QIfxF6o7xhr+XxZq+KHDBd8oNbgp+HpikkLWjjmqKxjARTApLofJM6BEmP9sOJNQm8jI mtridX7Lp865eTNUvNJtorlPJD/qCe3PshhseBS56c8GzURjUVTSnV3nqQyFzM5JimC5 Ch6Q== X-Gm-Message-State: AKS2vOyuCVcEWd41jq4/EYtMR+qwjgcPU40NSgohEl5mcCQ8IffF56J9 GLUIgcL+izxy84kZpnM= X-Received: by 10.28.47.138 with SMTP id v132mr3843233wmv.77.1497006487791; Fri, 09 Jun 2017 04:08:07 -0700 (PDT) Received: from sven-desktop.home.narfation.org (p2003007C6F55E5FE527B9DFFFECE2683.dip0.t-ipconnect.de. [2003:7c:6f55:e5fe:527b:9dff:fece:2683]) by smtp.gmail.com with ESMTPSA id x20sm927458wrd.63.2017.06.09.04.08.06 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 09 Jun 2017 04:08:07 -0700 (PDT) From: Sven Eckelmann To: ath10k@lists.infradead.org Subject: [PATCH v2 3/3] ath10k: Set rxnss_override for QCA9888 Date: Fri, 9 Jun 2017 13:07:50 +0200 Message-Id: <20170609110750.14950-3-sven.eckelmann@openmesh.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170609110750.14950-1-sven.eckelmann@openmesh.com> References: <20170609110750.14950-1-sven.eckelmann@openmesh.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170609_040830_109276_CC02ED95 X-CRM114-Status: UNSURE ( 8.26 ) X-CRM114-Notice: Please train this message. X-BeenThere: ath10k@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-wireless@vger.kernel.org, Sven Eckelmann MIME-Version: 1.0 Sender: "ath10k" Errors-To: ath10k-bounces+patchwork-ath10k=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP QCA9888 supports VHT80 with 2x2. But it only support 1x1 with VHT160 or VHT80+80. Inform userspace and the the QCA firmware about that limitation whenever VHT80+80 or VHT160 is configured. Signed-off-by: Sven Eckelmann --- v2: - new patch drivers/net/wireless/ath/ath10k/mac.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/net/wireless/ath/ath10k/mac.c b/drivers/net/wireless/ath/ath10k/mac.c index 0752cf351b4a..75e90adc8fb4 100644 --- a/drivers/net/wireless/ath/ath10k/mac.c +++ b/drivers/net/wireless/ath/ath10k/mac.c @@ -4436,6 +4436,14 @@ static struct ieee80211_sta_vht_cap ath10k_create_vht_cap(struct ath10k *ar) vht_cap.vht_mcs.rx_highest = 1560; vht_cap.vht_mcs.tx_highest = 1560; break; + case QCA9888_2_0_DEVICE_ID: + /* Can do only 1x1 VHT160 or 80+80. + * 780Mbps is 2x2 80Mhz or 1x1 160Mhz, + * long-guard-interval + */ + vht_cap.vht_mcs.rx_highest = 780; + vht_cap.vht_mcs.tx_highest = 780; + break; } }