From patchwork Thu Aug 27 12:47:32 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Kazior X-Patchwork-Id: 7084471 Return-Path: X-Original-To: patchwork-ath10k@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 5D8729F1C2 for ; Thu, 27 Aug 2015 12:47:44 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 7824220983 for ; Thu, 27 Aug 2015 12:47:43 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A96462062F for ; Thu, 27 Aug 2015 12:47:42 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZUwac-00068T-4F; Thu, 27 Aug 2015 12:47:34 +0000 Received: from mail-la0-x234.google.com ([2a00:1450:4010:c03::234]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZUwaZ-000651-TG for ath10k@lists.infradead.org; Thu, 27 Aug 2015 12:47:32 +0000 Received: by labns7 with SMTP id ns7so11703545lab.0 for ; Thu, 27 Aug 2015 05:47:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tieto.com; s=google; h=from:to:cc:subject:date:message-id; bh=o5ZUPOI0H1Q1WyVi5nKObi6SWsuOPQoh4hNDAKlwYP4=; b=02TF2Mgu1MWHo76jTVC5u7nXK0i33HEKHrldXYzyB+fWNdOO4jF8s0YiGvnphl3XNu Pj8p+k+mRFbBp2T9A8LzCtrQvap3ffDj/AX98A4QHKq+g4lVnNxdqp1sBzA8kxWARK/V EWdRKCAvJG6+aUfQEWQO63JicrPdlAi6Xyc6I= 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=o5ZUPOI0H1Q1WyVi5nKObi6SWsuOPQoh4hNDAKlwYP4=; b=UGQWfbqr1raI7SeqqaUdysafFhJxCF1mx06hn6K6qE+GOS9xbErYc5Ns/XwWYUYNLW ALcbUm2JNvbUxdUVFfhTrvTlsf1MxHN2AwFSbDwih0fDFBUCfUV60+GEHmuplmbF0k8X Qpc326MadVd1OFFtwhwG0HNG21gw3RkmWMrAZRziajdqqrpolhDu2uynT6Zyi/PiZx4R JnfQMNM6koeQp+jcQ9rLdMd/VC6enHcez/r5FtU4suz/eI+w5EkmJvJvHuWrSA+t9DlA u/L9df3PrrgDgXfijAlgiAdjZrW3SjeFcq4pNxBI/xdsxFTU8iXocqTXWyuqTIc0LqDD 3bpw== X-Gm-Message-State: ALoCoQmmzzF5LUt92lA8XcL3b3meBxfVZ/t+QQCPnvWdDM2IjpdBzD+TBP5uitxZy+hWaeHA9MsLL0h3ZJDoxGVQfJcYpDWdXjuNuB1Yj3SrEAkL7KbECH9h1lUx0al6d41535Pf3cgeCLQzSn5+fCGap9auo3Jwcib5B3nmvL0LVfdkwYBJZxkLMRDd1kupgZkG2x3tuPDS X-Received: by 10.112.146.135 with SMTP id tc7mr2193036lbb.35.1440679627179; Thu, 27 Aug 2015 05:47:07 -0700 (PDT) Received: from localhost.localdomain ([91.198.246.10]) by smtp.gmail.com with ESMTPSA id g5sm554744laf.33.2015.08.27.05.47.06 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 27 Aug 2015 05:47:06 -0700 (PDT) From: Michal Kazior To: ath10k@lists.infradead.org Subject: [PATCH 1/2] ath10k: change beamformee VHT STS capability Date: Thu, 27 Aug 2015 14:47:32 +0200 Message-Id: <1440679653-20289-1-git-send-email-michal.kazior@tieto.com> X-Mailer: git-send-email 2.1.4 X-DomainID: tieto.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150827_054732_124448_1BE735D3 X-CRM114-Status: GOOD ( 11.71 ) X-Spam-Score: -2.7 (--) X-BeenThere: ath10k@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-wireless@vger.kernel.org, Michal Kazior , Bartosz Markowski MIME-Version: 1.0 Sender: "ath10k" Errors-To: ath10k-bounces+patchwork-ath10k=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-5.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,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 From: Bartosz Markowski All beamformee supporting chips have the ability to support VHT NDP in up to 4 STSs. Change the published beamformee STS cap accordingly to 3 as it should be Nsts-1. This makes it possible to actually make full use of. e.g. a 4SS MU-MIMO capable AP. Signed-off-by: Bartosz Markowski Signed-off-by: Michal Kazior --- 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 64674c955d44..54ced30f5364 100644 --- a/drivers/net/wireless/ath/ath10k/mac.c +++ b/drivers/net/wireless/ath/ath10k/mac.c @@ -4074,7 +4074,7 @@ static int ath10k_mac_set_txbf_conf(struct ath10k_vif *arvif) if (ar->vht_cap_info & (IEEE80211_VHT_CAP_SU_BEAMFORMEE_CAPABLE | IEEE80211_VHT_CAP_MU_BEAMFORMEE_CAPABLE)) - value |= SM((ar->num_rf_chains - 1), WMI_TXBF_STS_CAP_OFFSET); + value |= SM(3, WMI_TXBF_STS_CAP_OFFSET); if (ar->vht_cap_info & (IEEE80211_VHT_CAP_SU_BEAMFORMER_CAPABLE | IEEE80211_VHT_CAP_MU_BEAMFORMER_CAPABLE)) @@ -6804,7 +6804,7 @@ static struct ieee80211_sta_vht_cap ath10k_create_vht_cap(struct ath10k *ar) if (ar->vht_cap_info & (IEEE80211_VHT_CAP_SU_BEAMFORMEE_CAPABLE | IEEE80211_VHT_CAP_MU_BEAMFORMEE_CAPABLE)) { - val = ar->num_rf_chains - 1; + val = 3; val <<= IEEE80211_VHT_CAP_BEAMFORMEE_STS_SHIFT; val &= IEEE80211_VHT_CAP_BEAMFORMEE_STS_MASK;