blob: 48f68019575fe4bb24c4b76b295f0db5e08a4398 [file] [log] [blame]
From b2870f1c814259b362f1c363fd9e6b5600a101cf 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 180/193] 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 2dbe4a3..938e8c8 100644
--- a/mt7996/main.c
+++ b/mt7996/main.c
@@ -3127,6 +3127,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