From patchwork Tue Nov 19 00:20:26 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: root X-Patchwork-Id: 11250495 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 3193914ED for ; Tue, 19 Nov 2019 00:20:45 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 0F4AD22303 for ; Tue, 19 Nov 2019 00:20:44 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="lRCUiR6M" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0F4AD22303 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=vento-sdc-01.qualcomm.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=ath10k-bounces+patchwork-ath10k=patchwork.kernel.org@lists.infradead.org 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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version: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:In-Reply-To:References: List-Owner; bh=1MjIXEL9mpbhACpmdrzWFG1I8CQnCFDZcJFbWXzZJTE=; b=lRCUiR6MY74htQ LazHtuADiXPLUHX65bZ4TEpfeSZiPyVYUCdZqx4uK6bpfdEaYrheg9r9ZTBer85uIj1ce7uANYSVW GcVaqysGnKeuuQD0TpyX+qnFHI2UsGv3T5y9Nx0RNXRrf9/Sz3vKirJgujY3T6rM89DRLKwev3dyp odw7cnD9/nD444n8nBPoCAzjKCN5bdhepl3s1Kj1nK9hJjitNLT3Vg3o50MnuGGTwKK5/EMIaYsQt rFpdVIjLQfFTbcy0b/HGrPkNBaj+3F6A/BbWwfVVqn70BURdm42NUs4B/RmjRf5xJNhe5jsXXFNhQ IBDj7TQlhMcsCzyhuvMg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1iWrG6-0000yM-9Y; Tue, 19 Nov 2019 00:20:42 +0000 Received: from alexa-out-tai-01.qualcomm.com ([103.229.16.226]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1iWrG0-0000xN-59 for ath10k@lists.infradead.org; Tue, 19 Nov 2019 00:20:40 +0000 Received: from ironmsg03-tai.qualcomm.com ([10.249.140.8]) by alexa-out-tai-01.qualcomm.com with ESMTP; 19 Nov 2019 08:20:32 +0800 IronPort-SDR: uIyi4jj5HCAF22ocHiM0RtK6nTIraWHDj4qUyHY+RQZOf7gN0zYGF9eqiOQmAXT2qCa5P1a86y 94ovE8Kc8TTba9RFBQNBob0SOXSm5Wv4Y= Received: from vento-sdc-01.ap.qualcomm.com (HELO vento-sdc-01.qualcomm.com) ([10.253.144.67]) by ironmsg03-tai.qualcomm.com with ESMTP; 19 Nov 2019 08:20:29 +0800 Received: by vento-sdc-01.qualcomm.com (Postfix, from userid 0) id 738CD1A4F; Tue, 19 Nov 2019 08:20:28 +0800 (CST) From: root To: ath10k@lists.infradead.org Subject: [PATCH v2 0/2] ath10k: correct tx bitrate for QCA6174/QCA9377/QCA9888 Date: Tue, 19 Nov 2019 08:20:26 +0800 Message-Id: <20191119002028.2519-1-root@vento-sdc-01.qualcomm.com> X-Mailer: git-send-email 2.22.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20191118_162036_455657_74507267 X-CRM114-Status: UNSURE ( 5.12 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -1.5 (-) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (-1.5 points) pts rule name description ---- ---------------------- -------------------------------------------------- -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at https://www.dnswl.org/, medium trust [103.229.16.226 listed in list.dnswl.org] 0.8 DKIM_ADSP_NXDOMAIN No valid author signature and domain not in DNS -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record X-BeenThere: ath10k@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-wireless@vger.kernel.org Sender: "ath10k" Errors-To: ath10k-bounces+patchwork-ath10k=patchwork.kernel.org@lists.infradead.org From: Yu Wang Tx bitrate got by command 'iw wlan0 link' is incorrect. These 2 patches will fix the issue. Changes from v1: [PATCH v2] ath10k: correct legacy rate in tx stats Remove wmi ops for getting legacy rate, instead, update the ratecode got from PPDU stats, to align with the existing tx rate processing. Yu Wang (2): ath10k: add ppdu stats support for QCA6174/QCA9377 ath10k: correct legacy rate in tx stats drivers/net/wireless/ath/ath10k/htt.c | 2 + drivers/net/wireless/ath/ath10k/htt.h | 30 ++++++ drivers/net/wireless/ath/ath10k/htt_rx.c | 146 +++++++++++++++++++++++++++++- drivers/net/wireless/ath/ath10k/mac.c | 2 +- drivers/net/wireless/ath/ath10k/mac.h | 1 + drivers/net/wireless/ath/ath10k/wmi-tlv.c | 4 + drivers/net/wireless/ath/ath10k/wmi-tlv.h | 3 + 7 files changed, 186 insertions(+), 2 deletions(-)