summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/ath/ath11k/debug.h
diff options
context:
space:
mode:
authorAnilkumar Kolli <akolli@codeaurora.org>2020-02-05 10:15:59 +0300
committerKalle Valo <kvalo@codeaurora.org>2020-02-11 21:33:34 +0300
commit443d2ee758ac63b4a2748f73ecc4ca73775e0c04 (patch)
treed1faca9c692a790e8a27b65d65e66e70910b0bdf /drivers/net/wireless/ath/ath11k/debug.h
parent79c080dbe35baaa1d46b241047a9dde745fc12eb (diff)
downloadlinux-443d2ee758ac63b4a2748f73ecc4ca73775e0c04.tar.xz
ath11k: fix parsing PPDU_CTRL type in pktlog
PPDU_CTRL type is missing in current pktlog dumps. PPDU_CTRL is sent on CE5 with len 2560 bytes, current driver ignores the payload len greter than 2048. PPDU_CTRL of 2560 bytes is sent in two fragments of len 2028 and 532 bytes, but firmware reports pkt header has length as 2560 for both of the fragments. Signed-off-by: Anilkumar Kolli <akolli@codeaurora.org> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/ath/ath11k/debug.h')
-rw-r--r--drivers/net/wireless/ath/ath11k/debug.h13
1 files changed, 10 insertions, 3 deletions
diff --git a/drivers/net/wireless/ath/ath11k/debug.h b/drivers/net/wireless/ath/ath11k/debug.h
index 8e8d5588b541..427d3ac5c909 100644
--- a/drivers/net/wireless/ath/ath11k/debug.h
+++ b/drivers/net/wireless/ath/ath11k/debug.h
@@ -68,12 +68,19 @@ struct debug_htt_stats_req {
u8 buf[0];
};
-#define ATH11K_HTT_STATS_BUF_SIZE (1024 * 512)
+struct ath_pktlog_hdr {
+ u16 flags;
+ u16 missed_cnt;
+ u16 log_type;
+ u16 size;
+ u32 timestamp;
+ u32 type_specific_data;
+ u8 payload[0];
+};
+#define ATH11K_HTT_STATS_BUF_SIZE (1024 * 512)
#define ATH11K_FW_STATS_BUF_SIZE (1024 * 1024)
-#define ATH11K_HTT_PKTLOG_MAX_SIZE 2048
-
enum ath11k_pktlog_filter {
ATH11K_PKTLOG_RX = 0x000000001,
ATH11K_PKTLOG_TX = 0x000000002,