]> www.infradead.org Git - users/jedix/linux-maple.git/commit
wifi: ath12k: Avoid explicit type cast in monitor status parse handler
authorKarthikeyan Periyasamy <quic_periyasa@quicinc.com>
Tue, 17 Dec 2024 08:45:11 +0000 (14:15 +0530)
committerJeff Johnson <jeff.johnson@oss.qualcomm.com>
Thu, 19 Dec 2024 17:41:06 +0000 (09:41 -0800)
commit8534c42397ed8f05257dbddcd305a351ad40add1
tree1cb255169e8c7a70e9d55f20c14e57c4d5994605
parent61f247a06c3cdeb9093b3d90afd7d51168d089f4
wifi: ath12k: Avoid explicit type cast in monitor status parse handler

Currently, monitor status parse procedure handles all the supported TLV
tags. Each TLV tag has its own data structure for parsing. Now, this
handler is passed the tlv_data as a u8 pointer, so explicit type cast
conversion happens for every TLV tag parsing. Therefore, avoid the
explicit type conversion by changing the tlv_data type from a u8 pointer
to a const void pointer.

Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.3.1-00173-QCAHKSWPL_SILICONZ-1
Tested-on: WCN7850 hw2.0 PCI WLAN.HMT.1.0.c5-00481-QCAHMTSWPL_V1.0_V2.0_SILICONZ-3

Signed-off-by: Karthikeyan Periyasamy <quic_periyasa@quicinc.com>
Acked-by: Jeff Johnson <quic_jjohnson@quicinc.com>
Acked-by: Kalle Valo <kvalo@kernel.org>
Link: https://patch.msgid.link/20241217084511.2981515-9-quic_periyasa@quicinc.com
Signed-off-by: Jeff Johnson <jeff.johnson@oss.qualcomm.com>
drivers/net/wireless/ath/ath12k/dp_mon.c