wifi: ath12k: refactor ath12k_mac_register() and ath12k_mac_unregister()
authorKarthikeyan Periyasamy <quic_periyasa@quicinc.com>
Sun, 14 Jan 2024 15:02:39 +0000 (17:02 +0200)
committerKalle Valo <quic_kvalo@quicinc.com>
Tue, 16 Jan 2024 12:19:46 +0000 (14:19 +0200)
commitd786c9f5fe3472ac102160c113a7bba8ec79a6c6
treea2a8fc89ec033303337331cdfef6c0d2db89f4c4
parentd2b7a6e5fa1c92deabe77aa57ef16f599f3b4247
wifi: ath12k: refactor ath12k_mac_register() and ath12k_mac_unregister()

Currently, the mac80211 hw registration procedure is tightly coupled with
the handling of link/radio (ar). Define a new helper function to separate
the link/radio handling from the mac80211 hw registration procedure for
improved code readability. Also, it can be easy to scale these
functionality to support single/multi link operation in the future.

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://msgid.link/20231206034920.1037449-5-quic_periyasa@quicinc.com
drivers/net/wireless/ath/ath12k/mac.c