Currently, the driver does not support single/multi link operation in 11be mode. Also, each link/radio gets registered as a separate wiphy through mac80211. In order to support multi link operation (MLO), the current separate wiphy registration approach brings a lot of complexity in cfg80211 and mac80211, such as synchronization across the multiple wiphy/hw. Determining the compatibility of the hw across multiple wiphy/hw is another challenge for userspace. To reduce these complexities in userspace/cfg80211/mac80211, need to move from the multi wiphy model to a single wiphy model. To support the single wiphy registration, we have to decouple the wiphy/mac80211 hw data from the link/radio (ar) structure. So refactor the MAC helper functions. Current Multi wiphy Model +---------------+ +---------------+ +-------------+ | Mac80211 hw | | Mac80211 hw | |Mac80211 hw | | private data | | private data | |private data | | | | | | | | | | | | | | | | | | | | ar (2GHz) | | ar (5GHz) | | ar (6GHz) | | | | | | | | | | | | | | | | | | | +---------------+ +---------------+ +-------------+ Single wiphy Model +--------------+ | Mac80211 hw | | private data | | | |ath12k hw (ah)| | +----------+ | | |ar (2GHz) | | | +----------+ | | | | | | |ar (5GHz) | | | +----------+ | | | | | | |ar (6GHz) | | | | | | | +----------+ | +--------------+ Karthikeyan Periyasamy (4): wifi: ath12k: Refactor the DP pdev pre alloc call sequence wifi: ath12k: Refactor the MAC allocation and destroy wifi: ath12k: Refactor MAC setup channel helper function wifi: ath12k: Refactor MAC un/register helper function drivers/net/wireless/ath/ath12k/core.c | 96 +++++++++-- drivers/net/wireless/ath/ath12k/mac.c | 216 +++++++++++-------------- drivers/net/wireless/ath/ath12k/mac.h | 8 +- 3 files changed, 184 insertions(+), 136 deletions(-) base-commit: 22d737065b8c4fbb29a3a818adcf88004ea7d5bb -- 2.34.1