Search Linux Wireless

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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 1/28/25 16:40, Roopni Devanathan wrote:
From: Sowmiya Sree Elavalagan<quic_ssreeela@xxxxxxxxxxx>

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@xxxxxxxxxxx>
Co-developed-by: Ramya Gnanasekar<quic_rgnanase@xxxxxxxxxxx>
Signed-off-by: Ramya Gnanasekar<quic_rgnanase@xxxxxxxxxxx>
Co-developed-by: Roopni Devanathan<quic_rdevanat@xxxxxxxxxxx>
Signed-off-by: Roopni Devanathan<quic_rdevanat@xxxxxxxxxxx>
---

Reviewed-by: Aditya Kumar Singh <aditya.kumar.singh@xxxxxxxxxxxxxxxx>

--
Aditya




[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Wireless Regulations]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux