From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id F2415C19F2A for ; Thu, 11 Aug 2022 16:04:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=HsFDKdESZIIv6RZD1KngOIU4huVRd/+VL/N2HJPPSGw=; b=zZk8LrzAzHteFy EMD/cXzXFC6ch4XwDfpnfXgU0yzo89Jjwc8hsw4bDjfC/RGRnhlsj1kb731iL2r5/hVZqwRxOKRDh zm3pcr9MJ7Ys757NGlYr6knUlDfn8Sk/Kr+jSB5A8ifZcKvJIFvqn1QBiWoT40hBjRC/m3JZf8ebq 16jF7lN7Ldo1eYxkI0t9cViAgXskXD4gFRYOv9TEeHezMdkwUS7pDYplXKS18lVyaTc3L5+6sXqOS d5yeIyy//JrHHwnywdTkartbyGvErCevdVXlVAcc4txiGbzajQ6/FhcNENUCAv7yct1hv6XmM1aUK ymbD3qqzenr1YmrcGF8w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oMAfm-00Efci-Q4; Thu, 11 Aug 2022 16:04:38 +0000 Received: from ams.source.kernel.org ([2604:1380:4601:e00::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oMAfh-00EfWZ-QQ for ath10k@lists.infradead.org; Thu, 11 Aug 2022 16:04:35 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 69F3CB82123; Thu, 11 Aug 2022 16:04:32 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9189CC433C1; Thu, 11 Aug 2022 16:04:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1660233871; bh=XBFwK4rubRr+4osIDMDJvoV6g7vilCpfMRyuvH86SI0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CVKIK7OudSy1KFdaD4VEaJ/eVAuWDQHK8vHzWUaOaeBGIW1bEHCjon2hTLZKLlKw+ EdKktaMMFkJoql9yoPX+U7mKlmpuiGfABwXPGZEjDYwijIq4OwwcJ9V+Cn3bGMB5Po 7i5uzY3u+s+RLz46ZrCOjFCq6Ve4prv60k8cWNutXoV/4kNL2sSRo+1t4zoItkjxsx N1iQ74Ggh/3q8f6crX1gKtwH4Drx7D4H4aG+ZUUoO5xeTz+68wCpnF2yiDfCEZ52En HrZqK+o5XjBv/yDAPIH09rFf7gfAagKMw28Vz0LquXhc2nWpwB5/FDMPSkDy2yRA7s kM1j5XBNRYsyw== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Maxime Bizon , Kalle Valo , Sasha Levin , kvalo@kernel.org, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, ath10k@lists.infradead.org, linux-wireless@vger.kernel.org, netdev@vger.kernel.org Subject: [PATCH AUTOSEL 5.10 03/46] ath10k: fix misreported tx bandwidth for 160Mhz Date: Thu, 11 Aug 2022 12:03:27 -0400 Message-Id: <20220811160421.1539956-3-sashal@kernel.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220811160421.1539956-1-sashal@kernel.org> References: <20220811160421.1539956-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220811_090434_044719_0E28BDD2 X-CRM114-Status: UNSURE ( 8.84 ) X-CRM114-Notice: Please train this message. X-BeenThere: ath10k@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "ath10k" Errors-To: ath10k-bounces+ath10k=archiver.kernel.org@lists.infradead.org From: Maxime Bizon [ Upstream commit 75a7062e533e309a9ca0812c69f3ac3cefadb8b1 ] Because of this missing switch case, 160Mhz transmit was reported as 20Mhz, leading to wrong airtime calculation and AQL limiting max throughput. Tested-on: QCA9984 hw2.0 PCI 10.4-3.10-00047 Signed-off-by: Maxime Bizon Signed-off-by: Kalle Valo Link: https://lore.kernel.org/r/cd2735a40da7f4fcc5323e3fca3775e7b5402ece.camel@freebox.fr Signed-off-by: Sasha Levin --- drivers/net/wireless/ath/ath10k/htt_rx.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/net/wireless/ath/ath10k/htt_rx.c b/drivers/net/wireless/ath/ath10k/htt_rx.c index 28ec3c5b4d1f..6d50955d15cf 100644 --- a/drivers/net/wireless/ath/ath10k/htt_rx.c +++ b/drivers/net/wireless/ath/ath10k/htt_rx.c @@ -3761,6 +3761,10 @@ ath10k_update_per_peer_tx_stats(struct ath10k *ar, arsta->tx_info.status.rates[0].flags |= IEEE80211_TX_RC_80_MHZ_WIDTH; break; + case RATE_INFO_BW_160: + arsta->tx_info.status.rates[0].flags |= + IEEE80211_TX_RC_160_MHZ_WIDTH; + break; } if (peer_stats->succ_pkts) { -- 2.35.1 _______________________________________________ ath10k mailing list ath10k@lists.infradead.org http://lists.infradead.org/mailman/listinfo/ath10k From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C7020C19F2A for ; Thu, 11 Aug 2022 16:23:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237944AbiHKQXt (ORCPT ); Thu, 11 Aug 2022 12:23:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44916 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237875AbiHKQXc (ORCPT ); Thu, 11 Aug 2022 12:23:32 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B1CC1A1A44; Thu, 11 Aug 2022 09:04:33 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 711C9B821B1; Thu, 11 Aug 2022 16:04:32 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9189CC433C1; Thu, 11 Aug 2022 16:04:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1660233871; bh=XBFwK4rubRr+4osIDMDJvoV6g7vilCpfMRyuvH86SI0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CVKIK7OudSy1KFdaD4VEaJ/eVAuWDQHK8vHzWUaOaeBGIW1bEHCjon2hTLZKLlKw+ EdKktaMMFkJoql9yoPX+U7mKlmpuiGfABwXPGZEjDYwijIq4OwwcJ9V+Cn3bGMB5Po 7i5uzY3u+s+RLz46ZrCOjFCq6Ve4prv60k8cWNutXoV/4kNL2sSRo+1t4zoItkjxsx N1iQ74Ggh/3q8f6crX1gKtwH4Drx7D4H4aG+ZUUoO5xeTz+68wCpnF2yiDfCEZ52En HrZqK+o5XjBv/yDAPIH09rFf7gfAagKMw28Vz0LquXhc2nWpwB5/FDMPSkDy2yRA7s kM1j5XBNRYsyw== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Maxime Bizon , Kalle Valo , Sasha Levin , kvalo@kernel.org, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, ath10k@lists.infradead.org, linux-wireless@vger.kernel.org, netdev@vger.kernel.org Subject: [PATCH AUTOSEL 5.10 03/46] ath10k: fix misreported tx bandwidth for 160Mhz Date: Thu, 11 Aug 2022 12:03:27 -0400 Message-Id: <20220811160421.1539956-3-sashal@kernel.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220811160421.1539956-1-sashal@kernel.org> References: <20220811160421.1539956-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Maxime Bizon [ Upstream commit 75a7062e533e309a9ca0812c69f3ac3cefadb8b1 ] Because of this missing switch case, 160Mhz transmit was reported as 20Mhz, leading to wrong airtime calculation and AQL limiting max throughput. Tested-on: QCA9984 hw2.0 PCI 10.4-3.10-00047 Signed-off-by: Maxime Bizon Signed-off-by: Kalle Valo Link: https://lore.kernel.org/r/cd2735a40da7f4fcc5323e3fca3775e7b5402ece.camel@freebox.fr Signed-off-by: Sasha Levin --- drivers/net/wireless/ath/ath10k/htt_rx.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/net/wireless/ath/ath10k/htt_rx.c b/drivers/net/wireless/ath/ath10k/htt_rx.c index 28ec3c5b4d1f..6d50955d15cf 100644 --- a/drivers/net/wireless/ath/ath10k/htt_rx.c +++ b/drivers/net/wireless/ath/ath10k/htt_rx.c @@ -3761,6 +3761,10 @@ ath10k_update_per_peer_tx_stats(struct ath10k *ar, arsta->tx_info.status.rates[0].flags |= IEEE80211_TX_RC_80_MHZ_WIDTH; break; + case RATE_INFO_BW_160: + arsta->tx_info.status.rates[0].flags |= + IEEE80211_TX_RC_160_MHZ_WIDTH; + break; } if (peer_stats->succ_pkts) { -- 2.35.1