diff options
author | Anilkumar Kolli <akolli@codeaurora.org> | 2019-12-17 17:21:40 +0100 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2020-01-26 12:38:07 +0200 |
commit | 1e93a78113b4eaf009b3c994595db44356544b05 (patch) | |
tree | 3e2f1aabbfa72081213d1aa8e3fef6e8ae5490f3 /drivers/net/wireless/ath/ath11k/debug.c | |
parent | ath11k: fix debugfs build failure (diff) | |
download | linux-1e93a78113b4eaf009b3c994595db44356544b05.tar.xz linux-1e93a78113b4eaf009b3c994595db44356544b05.zip |
ath11k: enable HE tlvs in ppdu stats for pktlog lite
This patch enables HE tlvs in ppdu stats for pktlog lite mode.
Signed-off-by: John Crispin <john@phrozen.org>
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.c')
-rw-r--r-- | drivers/net/wireless/ath/ath11k/debug.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath11k/debug.c b/drivers/net/wireless/ath/ath11k/debug.c index f48daf17f2d2..8d485171b0b3 100644 --- a/drivers/net/wireless/ath/ath11k/debug.c +++ b/drivers/net/wireless/ath/ath11k/debug.c @@ -931,7 +931,22 @@ static ssize_t ath11k_write_pktlog_filter(struct file *file, HTT_RX_FILTER_TLV_FLAGS_PACKET_HEADER | HTT_RX_FILTER_TLV_FLAGS_ATTENTION; } else if (mode == ATH11K_PKTLOG_MODE_LITE) { + ret = ath11k_dp_tx_htt_h2t_ppdu_stats_req(ar, + HTT_PPDU_STATS_TAG_PKTLOG); + if (ret) { + ath11k_err(ar->ab, "failed to enable pktlog lite: %d\n", ret); + goto out; + } + rx_filter = HTT_RX_FILTER_TLV_LITE_MODE; + } else { + ret = ath11k_dp_tx_htt_h2t_ppdu_stats_req(ar, + HTT_PPDU_STATS_TAG_DEFAULT); + if (ret) { + ath11k_err(ar->ab, "failed to send htt ppdu stats req: %d\n", + ret); + goto out; + } } tlv_filter.rx_filter = rx_filter; |