wifi: ath12k: Refactor the mac80211 hw access from link/radio
authorKarthikeyan Periyasamy <quic_periyasa@quicinc.com>
Thu, 18 Jan 2024 01:03:19 +0000 (06:33 +0530)
committerKalle Valo <quic_kvalo@quicinc.com>
Fri, 19 Jan 2024 17:39:48 +0000 (19:39 +0200)
commitb856f023b40fa7735ca19de433fc1307d69c36d0
tree93fba59fa4d71aaa4d4f3e32b2b379439d7f3c16
parent955df16f2a4c3023753680925e71e099818c2329
wifi: ath12k: Refactor the mac80211 hw access from link/radio

Currently, mac80211 hardware accesses link/radio structure directly in
multiple locations. Introduce helper function to avoid this direct
access, as this change will facilitate refactoring for Multi-link
operation support.

Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.0.1-00029-QCAHKSWPL_SILICONZ-1
Tested-on: WCN7850 hw2.0 PCI WLAN.HMT.1.0.c5-00481-QCAHMTSWPL_V1.0_V2.0_SILICONZ-3

Signed-off-by: Karthikeyan Periyasamy <quic_periyasa@quicinc.com>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://msgid.link/20240118010320.3918136-2-quic_periyasa@quicinc.com
drivers/net/wireless/ath/ath12k/core.c
drivers/net/wireless/ath/ath12k/core.h
drivers/net/wireless/ath/ath12k/dp_mon.c
drivers/net/wireless/ath/ath12k/dp_rx.c
drivers/net/wireless/ath/ath12k/dp_tx.c
drivers/net/wireless/ath/ath12k/mac.c
drivers/net/wireless/ath/ath12k/reg.c
drivers/net/wireless/ath/ath12k/wmi.c