Commit 14ed9f84 authored by Jeff Johnson's avatar Jeff Johnson Committed by Greg Kroah-Hartman
Browse files

wifi: ath11k: Introduce and use ath11k_sta_to_arsta()



[ Upstream commit 10c65f97 ]

Currently, the logic to return an ath11k_sta pointer, given a
ieee80211_sta pointer, uses typecasting throughout the driver. In
general, conversion functions are preferable to typecasting since
using a conversion function allows the compiler to validate the types
of both the input and output parameters.

ath11k already defines a conversion function ath11k_vif_to_arvif() for
a similar conversion. So introduce ath11k_sta_to_arsta() for this use
case, and convert all of the existing typecasting to use this
function.

No functional changes, compile tested only.

Signed-off-by: default avatarJeff Johnson <quic_jjohnson@quicinc.com>
Signed-off-by: default avatarKalle Valo <quic_kvalo@quicinc.com>
Link: https://lore.kernel.org/r/20231009-ath11k_sta_to_arsta-v1-1-1563e3a307e8@quicinc.com


Stable-dep-of: 97acb025 ("wifi: ath11k: fix group data packet drops during rekey")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent fb216d98
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment