public inbox for ath12k@lists.infradead.org
 help / color / mirror / Atom feed
* [PATCH] wifi: ath12k: Fix inappropriate use of print_array_to_buf_index()
@ 2024-11-18  3:57 Roopni Devanathan
  2024-11-18 22:49 ` Jeff Johnson
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Roopni Devanathan @ 2024-11-18  3:57 UTC (permalink / raw)
  To: ath12k; +Cc: linux-wireless, Roopni Devanathan

Currently in ath12k_htt_print_tx_pdev_mumimo_grp_stats_tlv() the
htt_stats_buf->ul_mumimo_grp_best_usrs array is printed using
print_array_to_buf_index() with a stats_index of 1. This is meant
to convey the semantic that first entry in ul_mumimo_grp_best_usrs
is associated with user 1. However, unlike some of the other "usr"
arrays which have that semantic, ul_mumimo_grp_best_usrs does not
have that semantic. Instead the first entry corresponds to user 0.

Fix the issue by calling the API - print_array_to_buf(), instead of
print_array_to_buf_index().

Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.0.1-00029-QCAHKSWPL_SILICONZ-1

Signed-off-by: Roopni Devanathan <quic_rdevanat@quicinc.com>
---
 drivers/net/wireless/ath/ath12k/debugfs_htt_stats.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/net/wireless/ath/ath12k/debugfs_htt_stats.c b/drivers/net/wireless/ath/ath12k/debugfs_htt_stats.c
index 43ea87e981f4..e0ee014ac79e 100644
--- a/drivers/net/wireless/ath/ath12k/debugfs_htt_stats.c
+++ b/drivers/net/wireless/ath/ath12k/debugfs_htt_stats.c
@@ -2277,9 +2277,9 @@ ath12k_htt_print_tx_pdev_mumimo_grp_stats_tlv(const void *tag_buf, u16 tag_len,
 	len += print_array_to_buf(buf, len, "ul_mumimo_grp_best_grp_size",
 				  htt_stats_buf->ul_mumimo_grp_best_grp_size,
 				  ATH12K_HTT_STATS_NUM_MAX_MUMIMO_SZ, "\n");
-	len += print_array_to_buf_index(buf, len, "ul_mumimo_grp_best_num_usrs = ", 1,
-					htt_stats_buf->ul_mumimo_grp_best_usrs,
-					ATH12K_HTT_TX_NUM_AX_MUMIMO_USER_STATS, "\n");
+	len += print_array_to_buf(buf, len, "ul_mumimo_grp_best_num_usrs = ",
+				  htt_stats_buf->ul_mumimo_grp_best_usrs,
+				  ATH12K_HTT_TX_NUM_AX_MUMIMO_USER_STATS, "\n");
 	len += print_array_to_buf(buf, len,
 				  "ul_mumimo_grp_tputs_observed (per bin = 300 mbps)",
 				  htt_stats_buf->ul_mumimo_grp_tputs,

base-commit: 0ea161de5e5afa1323e982adc8f59bf4af99a84b
-- 
2.25.1



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

* Re: [PATCH] wifi: ath12k: Fix inappropriate use of print_array_to_buf_index()
  2024-11-18  3:57 [PATCH] wifi: ath12k: Fix inappropriate use of print_array_to_buf_index() Roopni Devanathan
@ 2024-11-18 22:49 ` Jeff Johnson
  2024-11-21 10:53 ` Kalle Valo
  2024-11-21 16:12 ` Jeff Johnson
  2 siblings, 0 replies; 4+ messages in thread
From: Jeff Johnson @ 2024-11-18 22:49 UTC (permalink / raw)
  To: Roopni Devanathan, ath12k; +Cc: linux-wireless

On 11/17/2024 7:57 PM, Roopni Devanathan wrote:
> Currently in ath12k_htt_print_tx_pdev_mumimo_grp_stats_tlv() the
> htt_stats_buf->ul_mumimo_grp_best_usrs array is printed using
> print_array_to_buf_index() with a stats_index of 1. This is meant
> to convey the semantic that first entry in ul_mumimo_grp_best_usrs
> is associated with user 1. However, unlike some of the other "usr"
> arrays which have that semantic, ul_mumimo_grp_best_usrs does not
> have that semantic. Instead the first entry corresponds to user 0.
> 
> Fix the issue by calling the API - print_array_to_buf(), instead of
> print_array_to_buf_index().
> 
> Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.0.1-00029-QCAHKSWPL_SILICONZ-1
> 
> Signed-off-by: Roopni Devanathan <quic_rdevanat@quicinc.com>
Acked-by: Jeff Johnson <quic_jjohnson@quicinc.com>



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

* Re: [PATCH] wifi: ath12k: Fix inappropriate use of print_array_to_buf_index()
  2024-11-18  3:57 [PATCH] wifi: ath12k: Fix inappropriate use of print_array_to_buf_index() Roopni Devanathan
  2024-11-18 22:49 ` Jeff Johnson
@ 2024-11-21 10:53 ` Kalle Valo
  2024-11-21 16:12 ` Jeff Johnson
  2 siblings, 0 replies; 4+ messages in thread
From: Kalle Valo @ 2024-11-21 10:53 UTC (permalink / raw)
  To: Roopni Devanathan; +Cc: ath12k, linux-wireless

Roopni Devanathan <quic_rdevanat@quicinc.com> writes:

> Currently in ath12k_htt_print_tx_pdev_mumimo_grp_stats_tlv() the
> htt_stats_buf->ul_mumimo_grp_best_usrs array is printed using
> print_array_to_buf_index() with a stats_index of 1. This is meant
> to convey the semantic that first entry in ul_mumimo_grp_best_usrs
> is associated with user 1. However, unlike some of the other "usr"
> arrays which have that semantic, ul_mumimo_grp_best_usrs does not
> have that semantic. Instead the first entry corresponds to user 0.
>
> Fix the issue by calling the API - print_array_to_buf(), instead of
> print_array_to_buf_index().
>
> Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.0.1-00029-QCAHKSWPL_SILICONZ-1
>
> Signed-off-by: Roopni Devanathan <quic_rdevanat@quicinc.com>

Acked-by: Kalle Valo <kvalo@kernel.org>

-- 
https://patchwork.kernel.org/project/linux-wireless/list/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches


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

* Re: [PATCH] wifi: ath12k: Fix inappropriate use of print_array_to_buf_index()
  2024-11-18  3:57 [PATCH] wifi: ath12k: Fix inappropriate use of print_array_to_buf_index() Roopni Devanathan
  2024-11-18 22:49 ` Jeff Johnson
  2024-11-21 10:53 ` Kalle Valo
@ 2024-11-21 16:12 ` Jeff Johnson
  2 siblings, 0 replies; 4+ messages in thread
From: Jeff Johnson @ 2024-11-21 16:12 UTC (permalink / raw)
  To: ath12k, Roopni Devanathan; +Cc: linux-wireless


On Mon, 18 Nov 2024 09:27:22 +0530, Roopni Devanathan wrote:
> Currently in ath12k_htt_print_tx_pdev_mumimo_grp_stats_tlv() the
> htt_stats_buf->ul_mumimo_grp_best_usrs array is printed using
> print_array_to_buf_index() with a stats_index of 1. This is meant
> to convey the semantic that first entry in ul_mumimo_grp_best_usrs
> is associated with user 1. However, unlike some of the other "usr"
> arrays which have that semantic, ul_mumimo_grp_best_usrs does not
> have that semantic. Instead the first entry corresponds to user 0.
> 
> [...]

Applied, thanks!

[1/1] wifi: ath12k: Fix inappropriate use of print_array_to_buf_index()
      commit: 47c7ebfba30f242a24a89317c74eada47adfaa95

Best regards,
-- 
Jeff Johnson <quic_jjohnson@quicinc.com>



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

end of thread, other threads:[~2024-11-21 16:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-18  3:57 [PATCH] wifi: ath12k: Fix inappropriate use of print_array_to_buf_index() Roopni Devanathan
2024-11-18 22:49 ` Jeff Johnson
2024-11-21 10:53 ` Kalle Valo
2024-11-21 16:12 ` Jeff Johnson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox