wifi: ath12k: avoid repeated wiphy access from hw
authorKarthikeyan Periyasamy <quic_periyasa@quicinc.com>
Fri, 1 Dec 2023 01:37:35 +0000 (07:07 +0530)
committerKalle Valo <quic_kvalo@quicinc.com>
Tue, 5 Dec 2023 15:10:43 +0000 (17:10 +0200)
commitc8a5f34ad811743d1b3aeb5c54198eebd413bc6d
tree220ba6ab1f6eea71e374a2faf90f4e4311497444
parented7e818a7b501012038d6bc6fedadaf7375a380a
wifi: ath12k: avoid repeated wiphy access from hw

Currently repeated access of wiphy data from mac80211 hw structure is
happen inside the mac80211 registration helper functions. So optimize
these helper functions by storing wiphy 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>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://lore.kernel.org/r/20231201013735.2292313-1-quic_periyasa@quicinc.com
drivers/net/wireless/ath/ath12k/mac.c