When an MLD vif scans or does ROC on a radio where it has no link, mt76_get_vif_phy_link() adds an offchannel link with &vif->bss_conf. mt7996_mcu_bss_mld_tlv() registers that link in the firmware as a member of the vif's MLD group, with the group and remap index, the MLD address and link_id 0. The group then holds link 0 twice if the MLD has a real link 0, and once more for each other radio the scan visits. The removal of the offchannel link sends a BSS_INFO without an MLD TLV, so the firmware gets no command that takes it out of the group again. Register an offchannel link like the link of a non-MLD vif. It only carries scan and ROC management frames, which need no MLD address translation. Fixes: ed01c310eca9 ("wifi: mt76: mt7996: Fix mt7996_mcu_bss_mld_tlv routine") Signed-off-by: Felix Fietkau --- drivers/net/wireless/mediatek/mt76/mt7996/mcu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/mediatek/mt76/mt7996/mcu.c b/drivers/net/wireless/mediatek/mt76/mt7996/mcu.c index f35250430383..ce37b6b65918 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7996/mcu.c +++ b/drivers/net/wireless/mediatek/mt76/mt7996/mcu.c @@ -1172,7 +1172,7 @@ mt7996_mcu_bss_mld_tlv(struct sk_buff *skb, mld->own_mld_id = link->mld_idx; mld->link_id = link_conf->link_id; - if (ieee80211_vif_is_mld(vif)) { + if (ieee80211_vif_is_mld(vif) && !link->mt76.offchannel) { mld->group_mld_id = mvif->mld_group_idx; mld->remap_idx = mvif->mld_remap_idx; memcpy(mld->mac_addr, vif->addr, ETH_ALEN); -- 2.47.3