diff options
author | Vikas Patel <vikpatel@codeaurora.org> | 2019-11-27 18:30:07 +0200 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2019-11-29 09:36:09 +0200 |
commit | 79c647a3c59ddc1a1acf68e82e555201c10d3c18 (patch) | |
tree | ef20594e5f711c7612348a6b1d13b85290924d0e /drivers/net/wireless/ath/ath11k | |
parent | ath11k: Fix skb_panic observed during msdu coalescing (diff) | |
download | linux-dev-79c647a3c59ddc1a1acf68e82e555201c10d3c18.tar.xz linux-dev-79c647a3c59ddc1a1acf68e82e555201c10d3c18.zip |
ath11k: Fixing TLV length issue in peer pktlog WMI command
TLV length was 0 for TLV tag 'WMI_TAG_ARRAY_STRUCT' causing
Q6 to crash when trying to configure pktlog filter via debugfs.
Signed-off-by: Vikas Patel <vikpatel@codeaurora.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/ath/ath11k')
-rw-r--r-- | drivers/net/wireless/ath/ath11k/wmi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath11k/wmi.c b/drivers/net/wireless/ath/ath11k/wmi.c index ccebf7ce420a..aae6e76330da 100644 --- a/drivers/net/wireless/ath/ath11k/wmi.c +++ b/drivers/net/wireless/ath/ath11k/wmi.c @@ -2329,7 +2329,7 @@ int ath11k_wmi_pdev_peer_pktlog_filter(struct ath11k *ar, u8 *addr, u8 enable) tlv = ptr; tlv->header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_ARRAY_STRUCT) | - FIELD_PREP(WMI_TLV_LEN, 0); + FIELD_PREP(WMI_TLV_LEN, sizeof(*info)); ptr += TLV_HDR_SIZE; info = ptr; |