blob: e78c3439f344442a995eb6704ece0328501a5566 [file] [log] [blame]
From f8be713871266a7834ad070e6ed737ddc51aeb92 Mon Sep 17 00:00:00 2001
From: Michael-CY Lee <michael-cy.lee@mediatek.com>
Date: Mon, 5 Aug 2024 14:54:43 +0800
Subject: [PATCH 181/223] mtk: mt76: mt7996: remove default bss_conf when link
becomes MLD
Change-Id: I192aab47adfa038f0ca9320cd5840f1e624a618d
Signed-off-by: Michael-CY Lee <michael-cy.lee@mediatek.com>
---
mt7996/main.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/mt7996/main.c b/mt7996/main.c
index ed0f9154..7678059b 100644
--- a/mt7996/main.c
+++ b/mt7996/main.c
@@ -3128,6 +3128,12 @@ mt7996_change_vif_links(struct ieee80211_hw *hw, struct ieee80211_vif *vif,
}
if (!old_links) {
+ struct mt7996_bss_conf *mconf =
+ mconf_dereference_protected(mvif, 0);
+
+ if (ieee80211_vif_is_mld(vif) && mconf == &mvif->deflink)
+ mt7996_remove_bss_conf(vif, &vif->bss_conf, mconf);
+
mvif->group_mld_id = get_own_mld_idx(dev->mld_id_mask, true);
dev->mld_id_mask |= BIT_ULL(mvif->group_mld_id);
--
2.45.2