summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/ath/ath11k/testmode.c
diff options
context:
space:
mode:
authorDmitry Antipov <dmantipov@yandex.ru>2023-12-17 14:29:02 +0300
committerKalle Valo <quic_kvalo@quicinc.com>2023-12-18 21:44:32 +0300
commitf5e6c0c4b0877e0ec0221df6c0041c0f39b6ce0f (patch)
treea5b7c5c289dd1d88266d21e15f49f1493c6442d5 /drivers/net/wireless/ath/ath11k/testmode.c
parentad25ee36f00172f7d53242dc77c69fff7ced0755 (diff)
downloadlinux-f5e6c0c4b0877e0ec0221df6c0041c0f39b6ce0f.tar.xz
wifi: ath11k: refactor ath11k_wmi_tlv_parse_alloc()
Since 'ath11k_wmi_tlv_parse_alloc()' always operates on 'skb->data, skb->len' tuple, it may be simplified to pass the only 'skb' argument instead (which also implies refactoring of 'ath11k_pull_bcn_tx_status_ev()' and 'ath11k_pull_chan_info_ev()' in the same way). Compile tested only. Signed-off-by: Dmitry Antipov <dmantipov@yandex.ru> Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com> Link: https://msgid.link/20231214161117.75145-1-dmantipov@yandex.ru
Diffstat (limited to 'drivers/net/wireless/ath/ath11k/testmode.c')
-rw-r--r--drivers/net/wireless/ath/ath11k/testmode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath11k/testmode.c b/drivers/net/wireless/ath/ath11k/testmode.c
index 43bb23265d34..302d66092b97 100644
--- a/drivers/net/wireless/ath/ath11k/testmode.c
+++ b/drivers/net/wireless/ath/ath11k/testmode.c
@@ -198,7 +198,7 @@ static void ath11k_tm_wmi_event_segmented(struct ath11k_base *ab, u32 cmd_id,
u16 length;
int ret;
- tb = ath11k_wmi_tlv_parse_alloc(ab, skb->data, skb->len, GFP_ATOMIC);
+ tb = ath11k_wmi_tlv_parse_alloc(ab, skb, GFP_ATOMIC);
if (IS_ERR(tb)) {
ret = PTR_ERR(tb);
ath11k_warn(ab, "failed to parse ftm event tlv: %d\n", ret);