aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath11k/debug.c
diff options
context:
space:
mode:
authorKalle Valo <kvalo@codeaurora.org>2020-01-26 17:54:46 +0200
committerKalle Valo <kvalo@codeaurora.org>2020-01-26 17:54:46 +0200
commit2a13513f99e735184fd6f889d78da6424fda80a1 (patch)
tree1e8284f8b7eb65cb30cb7717561a7e6ff5c7a5b6 /drivers/net/wireless/ath/ath11k/debug.c
parentc2f9a4e4a5abfc84c01b738496b3fd2d471e0b18 (diff)
parentd7809bd9eae67b4252cbc4672431610227cbb729 (diff)
downloadkernel_replicant_linux-2a13513f99e735184fd6f889d78da6424fda80a1.tar.gz
kernel_replicant_linux-2a13513f99e735184fd6f889d78da6424fda80a1.tar.bz2
kernel_replicant_linux-2a13513f99e735184fd6f889d78da6424fda80a1.zip
Merge ath-next from git://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git
ath.git patches for v5.6. Major changes: ar5523 * add support for SMCWUSBT-G2 USB device
Diffstat (limited to 'drivers/net/wireless/ath/ath11k/debug.c')
-rw-r--r--drivers/net/wireless/ath/ath11k/debug.c15
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;