[PATCH 4/4] wifi: ath12k: Support pdev CCA Stats
Jeff Johnson
quic_jjohnson at quicinc.com
Mon Sep 16 15:13:45 PDT 2024
On 9/13/2024 1:29 AM, Roopni Devanathan wrote:
> From: Dinesh Karthikeyan <quic_dinek at quicinc.com>
>
> Add support to request CCA stats for physical devices from firmware
> through HTT stats type 19. These stats give information about
> channel number, number of records, counters' bitmap, collection
> interval and different CCA counters.
>
> Sample output:
> -------------
> echo 19 > /sys/kernel/debug/ath12k/pci-0000\:06\:00.0/mac0/htt_stats_type
> cat /sys/kernel/debug/ath12k/pci-0000\:06\:00.0/mac0/htt_stats
> HTT_PDEV_CCA_STATS_HIST_TLV (1s):
> chan_num = 5955
> num_records = 10
> valid_cca_counters_bitmap = 0xff
> collection_interval = 1000
>
> HTT_PDEV_STATS_CCA_COUNTERS_TLV:(in usec)
> tx_frame_usec = 0
> rx_frame_usec = 0
> rx_clear_usec = 999955
> my_rx_frame_usec = 0
> usec_cnt = 999955
> med_rx_idle_usec = 0
> med_tx_idle_global_usec = 0
> cca_obss_usec = 999955
> .....
>
> Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.0.1-00029-QCAHKSWPL_SILICONZ-1
> Tested-on: WCN7850 hw2.0 PCI WLAN.HMT.1.0-03427-QCAHMTSWPL_V1.0_V2.0_SILICONZ-1.15378.4
>
> Signed-off-by: Dinesh Karthikeyan <quic_dinek at quicinc.com>
> Signed-off-by: Roopni Devanathan <quic_rdevanat at quicinc.com>
Acked-by: Jeff Johnson <quic_jjohnson at quicinc.com>
More information about the ath12k
mailing list