[PATCH] wifi: ath12k: remove return for empty tx bitrate in mac_op_sta_statistics

Aditya Kumar Singh quic_adisi at quicinc.com
Sun Jan 19 20:39:31 PST 2025


On 1/18/25 01:00, Remi Pommarel wrote:
> Currently in ath12k_mac_op_sta_statistics() there is the following
> logic:
> 
>      if (!arsta->txrate.legacy && !arsta->txrate.nss)
>          return;
> 
> Because ath12k_sta_statistics is used to report many info to iw wlan0 link,
> if it return for empty legacy and nss of arsta->txrate, then the other
> stats after it will not be set.
> 
> To address this issue remove the return and instead invert the logic to set
> the txrate logic if (arsta->txrate.legacy || arsta->txrate.nss).
> 
> The same was done also in both ath10k with commit 1cd6ba8ae33e ("ath10k:
> remove return for NL80211_STA_INFO_TX_BITRATE") and ath11k as well with
> commit 1d795645e1ee ("ath11k: remove return for empty tx bitrate in
> mac_op_sta_statistics").
> 
> Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.3.1-00173-QCAHKSWPL_SILICONZ-1

nit: An empty line after Tested-on tag since that's not an official tag. 
It is ath specific tag. But I guess Jeff can fix this in pending?

> Signed-off-by: Remi Pommarel<repk at triplefau.lt>
> ---

Anyways, patch LGTM so

Reviewed-by: Aditya Kumar Singh <quic_adisi at quicinc.com>

Lastly, one more nit - please include base commit in future submissions :)

-- 
Aditya



More information about the ath12k mailing list