wifi: ath11k: refactor ath11k_wmi_tlv_parse_alloc()
authorDmitry Antipov <dmantipov@yandex.ru>
Sun, 17 Dec 2023 11:29:02 +0000 (13:29 +0200)
committerKalle Valo <quic_kvalo@quicinc.com>
Mon, 18 Dec 2023 18:44:32 +0000 (20:44 +0200)
commitf5e6c0c4b0877e0ec0221df6c0041c0f39b6ce0f
treea5b7c5c289dd1d88266d21e15f49f1493c6442d5
parentad25ee36f00172f7d53242dc77c69fff7ced0755
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
drivers/net/wireless/ath/ath11k/testmode.c
drivers/net/wireless/ath/ath11k/wmi.c
drivers/net/wireless/ath/ath11k/wmi.h