[PATCH v5 1/2] wifi: ath12k: Add Support to Parse TPC Event from Firmware

Aditya Kumar Singh aditya.kumar.singh at oss.qualcomm.com
Tue Jan 28 06:49:59 PST 2025


On 1/28/25 16:40, Roopni Devanathan wrote:
> From: Sowmiya Sree Elavalagan<quic_ssreeela at quicinc.com>
> 
> Host receives four Transmit Power Control(TPC) events from firmware on
> sending TPC request. Fixed param TLV is present as part of all event to
> indicate the event count and end of event. TPC config parameters along
> with regulatory power array comes as first event. Rates array comes as
> second and third event as it cannot be packed in single event.
> Conformance Test Limit (CTL) power array comes as the fourth event.
> Firmware packs different sets of array params which includes array
> length and type inside master TLV as different subtlvs. And the actual
> content of array is packed one after the other inside a separate TLV as
> single buffer.
> 
> Parse various events and save it in local structures. Create tpc_stats
> file using debugfs to store these local structures. Create function to
> handle TPC stats read to relay the information to the user.
> 
> Command usage:
> cat > /sys/kernel/debug/ath12k/pci-0000\:06\:00.0/mac0/tpc_stats
> 
> Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.1.1-00214-QCAHKSWPL_SILICONZ-1
> 
> Signed-off-by: Sowmiya Sree Elavalagan<quic_ssreeela at quicinc.com>
> Co-developed-by: Ramya Gnanasekar<quic_rgnanase at quicinc.com>
> Signed-off-by: Ramya Gnanasekar<quic_rgnanase at quicinc.com>
> Co-developed-by: Roopni Devanathan<quic_rdevanat at quicinc.com>
> Signed-off-by: Roopni Devanathan<quic_rdevanat at quicinc.com>
> ---

Reviewed-by: Aditya Kumar Singh <aditya.kumar.singh at oss.qualcomm.com>

-- 
Aditya



More information about the ath12k mailing list