wifi: ath12k: Consistently use ath12k_vif_to_arvif()
authorJeff Johnson <quic_jjohnson@quicinc.com>
Mon, 9 Oct 2023 07:13:54 +0000 (10:13 +0300)
committerKalle Valo <quic_kvalo@quicinc.com>
Tue, 10 Oct 2023 07:25:11 +0000 (10:25 +0300)
commit13556aef0bdc0e98df7b6bf2e10d706c59dce6f4
tree83fe5488377130bac045c2384f74b1baf98e2490
parente149353e6562f3e3246f75dfc4cca6a0cc5b4efc
wifi: ath12k: Consistently use ath12k_vif_to_arvif()

Helper function ath12k_vif_to_arvif() exists to retrieve a struct
ath12k_vif from a struct ieee80211_vif. However, in multiple places
this logic is open-coded with inline typecasting. Since the
typecasting prevents the compiler from type-checking the source and
destination, update the driver to consistently use the helper
function.

No functional changes, compile tested only.

Signed-off-by: Jeff Johnson <quic_jjohnson@quicinc.com>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://lore.kernel.org/r/20231004-ath12k_vif_to_arvif-v1-1-3f38f6882d33@quicinc.com
drivers/net/wireless/ath/ath12k/mac.c