wifi: ath11k: Consistently use ath11k_vif_to_arvif()
authorJeff Johnson <quic_jjohnson@quicinc.com>
Mon, 21 Aug 2023 14:13:36 +0000 (07:13 -0700)
committerKalle Valo <quic_kvalo@quicinc.com>
Wed, 23 Aug 2023 14:04:29 +0000 (17:04 +0300)
commit9476cda44c136089f14f8951ae5197d63e91735c
treef988ff8cf4f5fffdbbc0ebe8ecd47779646a696a
parent29d15589f084d71a4ea8c544039c5839db0236e2
wifi: ath11k: Consistently use ath11k_vif_to_arvif()

Helper function ath11k_vif_to_arvif() exists to retrieve a struct
ath11k_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/20230821-ath11k_vif_to_arvif-v1-1-fa2c3b60b5cf@quicinc.com
drivers/net/wireless/ath/ath11k/mac.c
drivers/net/wireless/ath/ath11k/testmode.c