[PATCH v3 0/2] wifi: ath12k: Support Transmit Power Control Stats

Aditya Kumar Singh quic_adisi at quicinc.com
Tue Jan 14 21:34:55 PST 2025


On 1/14/25 19:27, Roopni Devanathan wrote:
> Add support to print Transmit Power Control Stats. Add support for basic
> infrastructure necessary for enabling TPC stats via debugfs. This patch
> series brings support to request stats type from firmware and dump the
> corresponding stats.
> 
> Schema for an ath12k device:
> ath12k
> -- pci-0000:06:00.0
>      -- mac0
>          -- tpc_stats
>          -- tpc_stats_type
> 
> Sample TPC logs:
> *************** TPC config **************
> * powers are in 0.25 dBm steps
> reg domain-22           chan freq-5955
> power limit-126         max reg-domain Power-252
> No.of tx chain-4        No.of rates-1164
> **************** SU WITH TXBF ****************
>                                  TPC values for Active chains
> Rate idx Preamble Rate code     1-Chain 2-Chain 3-Chain 4-Chain
> 4        OFDM    0x000          39      15      1       -9
> 5        OFDM    0x001          39      15      1       -9
> .....
> 12       HT20    0x200          40      16      2       -8
> 13       HT20    0x201          40      16      2       -8
> .....
> 44       HT40    0x200          88      88      88      88
> 45       HT40    0x201          88      88      88      88
> .....
> 76       VHT20   0x300          40      16      2       -8
> 77       VHT20   0x301          40      16      2       -8
> .....
> 172      VHT40   0x300          88      88      88      88
> 173      VHT40   0x301          88      88      88      88
> .....
> 
> Note:
> MCC firmware version -
> WLAN.HMT.1.0.c5-00481-QCAHMTSWPL_V1.0_V2.0_SILICONZ-3 does not print stats
> because MCC firmware will not respond to the event passed from host,
> resulting in timeout.
> 
> v3:
>   - Fixed datatype conversion warnings in v2.
> v2:
>   - Fixed compilation issues in v1.
> 
> Sowmiya Sree Elavalagan (2):
>    wifi: ath12k: Add Support to Parse TPC Event from Firmware
>    wifi: ath12k: Add Support to Calculate and Display TPC Values
> 
>   drivers/net/wireless/ath/ath12k/core.h    |   5 +
>   drivers/net/wireless/ath/ath12k/debugfs.c | 716 ++++++++++++++++++++++
>   drivers/net/wireless/ath/ath12k/debugfs.h |  85 +++
>   drivers/net/wireless/ath/ath12k/wmi.c     | 458 ++++++++++++++
>   drivers/net/wireless/ath/ath12k/wmi.h     | 139 +++++
>   5 files changed, 1403 insertions(+)
> 

* drivers/net/wireless/ath/ath12k/core.h: 2025 copyright missing
* drivers/net/wireless/ath/ath12k/debugfs.c: 2025 copyright missing
* drivers/net/wireless/ath/ath12k/debugfs.h: 2025 copyright missing
* drivers/net/wireless/ath/ath12k/wmi.c: 2025 copyright missing
* drivers/net/wireless/ath/ath12k/wmi.h: 2025 copyright missing

No need to re-spin just because of this.

> 
> base-commit: 0c5fcd9069dd5f984e39820629acbfbe0f1b4256


-- 
Aditya



More information about the ath12k mailing list