Rakesh Pillai <pillair@xxxxxxxxxxxxxx> wrote: > The index for updating rate table, which is displayed > in the tx stats via debugfs, is calculated using the > bandwidth value. The bandwidth values do not map > correctly with the bandwidth values shown in the rate table. > > Correct the bandwidth value calculation which is used > to calculate the index for rate table updation for tx stats. > > Tested HW: WCN3990 > Tested FW: WLAN.HL.3.1-00784-QCAHLSWMTPLZ-1 > > Fixes: e88975ca37d1 ("ath10k: dump tx stats in rate table format") > Signed-off-by: Rakesh Pillai <pillair@xxxxxxxxxxxxxx> Fails to compile: drivers/net/wireless/ath/ath10k/htt_rx.c: In function 'ath10k_accumulate_per_peer_tx_stats': drivers/net/wireless/ath/ath10k/htt_rx.c:3252:14: error: implicit declaration of function 'ath10k_get_bw'; did you mean 'ath10k_get_tid'? [-Werror=implicit-function-declaration] rtable_bw = ath10k_get_bw(&ar->hw_params, pstats->flags); ^~~~~~~~~~~~~ ath10k_get_tid cc1: some warnings being treated as errors make[5]: *** [drivers/net/wireless/ath/ath10k/htt_rx.o] Error 1 make[4]: *** [drivers/net/wireless/ath/ath10k] Error 2 make[3]: *** [drivers/net/wireless/ath] Error 2 make[2]: *** [drivers/net/wireless] Error 2 make[1]: *** [drivers/net] Error 2 make[1]: *** Waiting for unfinished jobs.... make: *** [drivers] Error 2 2 patches set to Changes Requested. 10847733 [1/2] ath10k: Fix rate table updation in tx stats 10847737 [2/2] ath10k: Fix NSS tx stats for legacy rates -- https://patchwork.kernel.org/patch/10847733/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches