During non-transmitted (nontx) profile configuration, interface index of the transmitted (tx) profile is used to retrieve the wireless device (wdev) associated with it. With MLO, this 'wdev' may be part of an MLD with more than one link, hence only interface index is not sufficient anymore to retrieve the correct tx profile. Add a new attribute to configure link id of tx profile. Similarly, storing 'vif' of tx profile inside 'vif' for nontx profiles is not sufficient for MLO, instead store tx link data inside each nontx link data structure. v4: (1) Pre-requisite driver patches are merged in wireless-next hence this series should apply cleanly now. (2) Refactored possible driver changes into a separate patch. (3) Found a change missed in HWSIM causing compilation errors, replaced mbssid_tx_bss by tx_bss_conf and confirmed successful compilation. (4) Replaced vif->bss_conf->ema_ap by link_conf->ema_ap. Aloka Dixit (1): wifi: ath12k: pass link_conf for tx_arvif retrieval Rameshkumar Sundaram (2): wifi: nl80211: add link id of transmitted profile for MLO MBSSID wifi: mac80211: restructure tx profile retrieval for MLO MBSSID drivers/net/wireless/ath/ath11k/mac.c | 10 ++- drivers/net/wireless/ath/ath12k/mac.c | 35 ++++++--- drivers/net/wireless/virtual/mac80211_hwsim.c | 7 +- include/net/cfg80211.h | 2 + include/net/mac80211.h | 7 +- include/uapi/linux/nl80211.h | 6 ++ net/mac80211/cfg.c | 64 ++++++++++------ net/mac80211/ieee80211_i.h | 2 + net/mac80211/iface.c | 73 +++++++++++++------ net/wireless/nl80211.c | 14 ++++ 10 files changed, 158 insertions(+), 62 deletions(-) base-commit: fc56639937ce95a73c9876e39f8d18d1a8dd6a95 -- 2.34.1