From: Maxime Bizon <mbizon@freebox.fr> To: Kalle Valo <kvalo@kernel.org> Cc: ath10k@lists.infradead.org, linux-wireless <linux-wireless@vger.kernel.org> Subject: [PATCH] ath10k: fix misreported tx bandwidth for 160Mhz Date: Mon, 16 May 2022 17:23:43 +0200 [thread overview] Message-ID: <cd2735a40da7f4fcc5323e3fca3775e7b5402ece.camel@freebox.fr> (raw) 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
WARNING: multiple messages have this Message-ID (diff)
From: Maxime Bizon <mbizon@freebox.fr> To: Kalle Valo <kvalo@kernel.org> Cc: ath10k@lists.infradead.org, linux-wireless <linux-wireless@vger.kernel.org> Subject: [PATCH] ath10k: fix misreported tx bandwidth for 160Mhz Date: Mon, 16 May 2022 17:23:43 +0200 [thread overview] Message-ID: <cd2735a40da7f4fcc5323e3fca3775e7b5402ece.camel@freebox.fr> (raw) 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 _______________________________________________ ath10k mailing list ath10k@lists.infradead.org http://lists.infradead.org/mailman/listinfo/ath10k
next reply other threads:[~2022-05-16 15:23 UTC|newest] Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top 2022-05-16 15:23 Maxime Bizon [this message] 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:11 ` Kalle Valo 2022-05-16 16:23 ` Maxime Bizon 2022-05-16 16:23 ` Maxime Bizon 2022-05-16 16:35 ` Kalle Valo 2022-05-16 16:35 ` Kalle Valo 2022-05-22 12:28 ` Kalle Valo 2022-05-22 12:28 ` Kalle Valo
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=cd2735a40da7f4fcc5323e3fca3775e7b5402ece.camel@freebox.fr \ --to=mbizon@freebox.fr \ --cc=ath10k@lists.infradead.org \ --cc=kvalo@kernel.org \ --cc=linux-wireless@vger.kernel.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.