wifi: ath12k: refactor ath12k_wmi_tlv_parse_alloc()
authorDmitry Antipov <dmantipov@yandex.ru>
Tue, 19 Dec 2023 09:10:18 +0000 (12:10 +0300)
committerKalle Valo <quic_kvalo@quicinc.com>
Thu, 11 Jan 2024 11:19:29 +0000 (13:19 +0200)
commitfba97a777dcb90896ab1dc32e796d85bb7bbcd69
treef10941c06cca16fe8dff22b36a04355acc160c6e
parentaaf244141ed7195a9a56e03c2367f4a9d0b727a8
wifi: ath12k: refactor ath12k_wmi_tlv_parse_alloc()

Since 'ath12k_wmi_tlv_parse_alloc()' always operates on 'skb->data,
skb->len' tuple, it may be simplified to pass the only 'skb' argument
instead (which implies refactoring of 'ath12k_pull_bcn_tx_status_ev()',
'ath12k_pull_chan_info_ev()' and 'ath12k_pull_pdev_temp_ev()' in the
same way). This is an ath12k counterpart of the recently submitted
ath11k patch and compile tested only as well.

Signed-off-by: Dmitry Antipov <dmantipov@yandex.ru>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://msgid.link/20231219091022.70861-1-dmantipov@yandex.ru
drivers/net/wireless/ath/ath12k/wmi.c