linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ath10k: fix misreported tx bandwidth for 160Mhz
@ 2022-05-16 15:23 Maxime Bizon
  2022-05-16 16:11 ` Kalle Valo
  2022-05-22 12:28 ` Kalle Valo
  0 siblings, 2 replies; 5+ messages in thread
From: Maxime Bizon @ 2022-05-16 15:23 UTC (permalink / raw)
  To: Kalle Valo; +Cc: ath10k, linux-wireless

Because of this missing switch case, 160Mhz transmit was reported as
20Mhz, leading to wrong airtime calculation and AQL limiting max
throughput.

Signed-off-by: Maxime Bizon <mbizon@freebox.fr>
---
 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 771252dd6d4e..e8727c0b0171 100644
--- a/drivers/net/wireless/ath/ath10k/htt_rx.c
+++ b/drivers/net/wireless/ath/ath10k/htt_rx.c
@@ -3884,6 +3884,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.17.1



^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-05-22 12:28 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-05-16 15:23 [PATCH] ath10k: fix misreported tx bandwidth for 160Mhz Maxime Bizon
2022-05-16 16:11 ` Kalle Valo
2022-05-16 16:23   ` Maxime Bizon
2022-05-16 16:35     ` Kalle Valo
2022-05-22 12:28 ` Kalle Valo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).