wifi: ath12k: avoid repeated hw access from ar
authorKarthikeyan Periyasamy <quic_periyasa@quicinc.com>
Mon, 20 Nov 2023 23:58:12 +0000 (05:28 +0530)
committerKalle Valo <quic_kvalo@quicinc.com>
Fri, 1 Dec 2023 16:04:45 +0000 (18:04 +0200)
commit940b57fd0e77109874a99de8b304d672599d1acb
tree61a8d02197f8307f269b21269012398a91bf2538
parent842addae02089fce4731be1c8d7d539449d4d009
wifi: ath12k: avoid repeated hw access from ar

Currently, the helper functions are accessing mac80211 hw data from the
radio (ar) structure repeatedly. So optimize these helper functions by
storing mac80211 hw data locally and accessing it directly.

Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.0.1-00029-QCAHKSWPL_SILICONZ-1

Signed-off-by: Karthikeyan Periyasamy <quic_periyasa@quicinc.com>
Acked-by: Jeff Johnson <quic_jjohnson@quicinc.com>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://lore.kernel.org/r/20231120235812.2602198-3-quic_periyasa@quicinc.com
drivers/net/wireless/ath/ath12k/mac.c
drivers/net/wireless/ath/ath12k/reg.c
drivers/net/wireless/ath/ath12k/reg.h