blob: 4a10a4ed9a4990ae99e34eeeb527de2455ff5753 [file] [log] [blame]
developer05f3b2b2024-08-19 19:17:34 +08001From c163bc7222a263f342dbef0568f2bd09044135be Mon Sep 17 00:00:00 2001
2From: Michael-CY Lee <michael-cy.lee@mediatek.com>
3Date: Mon, 5 Aug 2024 14:54:43 +0800
4Subject: [PATCH 193/199] mtk: mt76: mt7996: remove default bss_conf when link
5 becomes MLD
6
7Signed-off-by: Michael-CY Lee <michael-cy.lee@mediatek.com>
8---
9 mt7996/main.c | 6 ++++++
10 1 file changed, 6 insertions(+)
11
12diff --git a/mt7996/main.c b/mt7996/main.c
13index 29b2583d..76dbb2f3 100644
14--- a/mt7996/main.c
15+++ b/mt7996/main.c
16@@ -3124,6 +3124,12 @@ mt7996_change_vif_links(struct ieee80211_hw *hw, struct ieee80211_vif *vif,
17 }
18
19 if (!old_links) {
20+ struct mt7996_bss_conf *mconf =
21+ mconf_dereference_protected(mvif, 0);
22+
23+ if (ieee80211_vif_is_mld(vif) && mconf == &mvif->deflink)
24+ mt7996_remove_bss_conf(vif, &vif->bss_conf, mconf);
25+
26 mvif->group_mld_id = get_own_mld_idx(dev->mld_id_mask, true);
27 dev->mld_id_mask |= BIT_ULL(mvif->group_mld_id);
28
29--
302.18.0
31