]> www.infradead.org Git - users/jedix/linux-maple.git/commit
wifi: ath12k: Support AST Entry Stats
authorRoopni Devanathan <quic_rdevanat@quicinc.com>
Wed, 18 Dec 2024 03:57:10 +0000 (09:27 +0530)
committerJeff Johnson <jeff.johnson@oss.qualcomm.com>
Fri, 10 Jan 2025 20:14:57 +0000 (12:14 -0800)
commit89699f029cd42ddf913a201c917ce4f7b213b068
treeafa12de835bc09d47b83cf4e68ac8bf8b1141d4b
parent3f482f2434753a0647dc8753a127f86878348458
wifi: ath12k: Support AST Entry Stats

Add support to request Address Search Table(AST) entries stats
from firmware through HTT stats type 41. These stats give AST entries
related information such as software peer id, MAC address, pdev id,
vdev, id, next hop, etc.

Sample output:
-------------
echo 41 > /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_AST_ENTRY_TLV:
ast_index = 10
mac_addr = 00:00:00:01:00:00
sw_peer_id = 0
pdev_id = 3
vdev_id = 255
next_hop = 0
mcast = 0
monitor_direct = 0
mesh_sta = 0
mec = 0
intra_bss = 0

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: Roopni Devanathan <quic_rdevanat@quicinc.com>
Acked-by: Kalle Valo <kvalo@kernel.org>
Link: https://patch.msgid.link/20241218035711.2573584-2-quic_rdevanat@quicinc.com
Signed-off-by: Jeff Johnson <jeff.johnson@oss.qualcomm.com>
drivers/net/wireless/ath/ath12k/debugfs_htt_stats.c
drivers/net/wireless/ath/ath12k/debugfs_htt_stats.h
drivers/net/wireless/ath/ath12k/dp.h