Yu Wang <yyuwang@xxxxxxxxxxxxxx> wrote: > When QCA6174/QCA9377 working in station mode, after connected > to AP, tx bitrate is always '1.0 MBit/s' in output of command > 'iw wlan0 link'. > > That's because the parameters to calculate the tx bitrate are > not well updated for QCA6174/QCA9377. > > To fix this issue: > 1. Add processing for HTT_T2H_MSG_TYPE_PPDU_STATS_IND which includes > the peer tx stats; > 2. Map WMI_TLV_SERVICE_PEER_STATS_INFO to WMI_SERVICE_PEER_STATS to > enable the feature. > > Tested with QCA6174 PCIe with firmware WLAN.RM.4.4.1.c3-00031. > Tested with QCA6174 SDIO with firmware WLAN.RMH.4.4.1-00029. > > Signed-off-by: Yu Wang <yyuwang@xxxxxxxxxxxxxx> > Signed-off-by: Kalle Valo <kvalo@xxxxxxxxxxxxxx> This has new warnings: drivers/net/wireless/ath/ath10k/htt_rx.c: In function 'ath10k_htt_process_ppdu_stats': drivers/net/wireless/ath/ath10k/htt_rx.c:3746:21: warning: variable 'arsta' set but not used [-Wunused-but-set-variable] drivers/net/wireless/ath/ath10k/htt_rx.c:3751:18: warning: incorrect type in assignment (different base types) drivers/net/wireless/ath/ath10k/htt_rx.c:3751:18: expected unsigned char [usertype] num_ppdu drivers/net/wireless/ath/ath10k/htt_rx.c:3751:18: got restricted __le32 [usertype] num_ppdu -- https://patchwork.kernel.org/patch/11250999/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches