wifi: ath12k: Optimize the mac80211 hw data access
authorKarthikeyan Periyasamy <quic_periyasa@quicinc.com>
Mon, 20 Nov 2023 23:58:11 +0000 (05:28 +0530)
committerKalle Valo <quic_kvalo@quicinc.com>
Fri, 1 Dec 2023 16:04:45 +0000 (18:04 +0200)
commit842addae02089fce4731be1c8d7d539449d4d009
treec41190e2ae97990814cb71dd61f8d0db5d2ac097
parent37a0dd6137ecfbd25d6ce84b65ad23de4f06b779
wifi: ath12k: Optimize the mac80211 hw data access

Currently mac80211 hw data is accessed by convert the hw to radio (ar)
structure and then radio to hw structure which is not necessary in some
places where mac80211 hw data is already present. So in that kind of
places avoid the conversion and directly access the mac80211 hw data.

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-2-quic_periyasa@quicinc.com
drivers/net/wireless/ath/ath12k/mac.c
drivers/net/wireless/ath/ath12k/reg.c