To support multi link operation (MLO), need to move from the multi wiphy model to a single wiphy model. However, the single wiphy model allows multiple link/radio to be exposed by the same mac80211 hw. So introduce a new container (ath12k_hw) structure. This approach improves scalability for future multi link operation support. v3: - Removed (struct ath12k_hw::conf_mutex) as per kalle comment - Rebased on master branch v2: - Rebased on pending branch as per jeff comments Karthikeyan Periyasamy (2): wifi: ath12k: Refactor the mac80211 hw access from link/radio wifi: ath12k: Introduce the container for mac80211 hw drivers/net/wireless/ath/ath12k/core.c | 18 +- drivers/net/wireless/ath/ath12k/core.h | 42 ++- drivers/net/wireless/ath/ath12k/dp_mon.c | 4 +- drivers/net/wireless/ath/ath12k/dp_rx.c | 6 +- drivers/net/wireless/ath/ath12k/dp_tx.c | 6 +- drivers/net/wireless/ath/ath12k/mac.c | 460 +++++++++++++++-------- drivers/net/wireless/ath/ath12k/mac.h | 4 +- drivers/net/wireless/ath/ath12k/reg.c | 9 +- drivers/net/wireless/ath/ath12k/wmi.c | 17 +- 9 files changed, 391 insertions(+), 175 deletions(-) base-commit: 03a67f8046dadb966950a0a6acbac2839cddfeb1 -- 2.34.1