[PATCH 24/28] wifi: mt76: mt7925: skip re-adding the primary MLD BSS_INFO in chanctx ops
Emery Hsin
emery.hsin at mediatek.com
Mon Nov 9 19:12:40 PST 2026
The primary link BSS_INFO is already sent from the sta add, assoc and
remove paths and from mt7925_mac_set_links(), so the chanctx ops no
longer resend it for an MLD station.
Signed-off-by: Emery Hsin <emery.hsin at mediatek.com>
---
.../net/wireless/mediatek/mt76/mt7925/main.c | 17 ++---------------
1 file changed, 2 insertions(+), 15 deletions(-)
diff --git a/drivers/net/wireless/mediatek/mt76/mt7925/main.c b/drivers/net/wireless/mediatek/mt76/mt7925/main.c
index 1192a01006bd..00244a650464 100644
--- a/drivers/net/wireless/mediatek/mt76/mt7925/main.c
+++ b/drivers/net/wireless/mediatek/mt76/mt7925/main.c
@@ -2914,7 +2914,6 @@ static int mt7925_assign_vif_chanctx(struct ieee80211_hw *hw,
struct mt792x_chanctx *mctx = (struct mt792x_chanctx *)ctx->drv_priv;
struct mt792x_vif *mvif = (struct mt792x_vif *)vif->drv_priv;
struct mt792x_dev *dev = mt792x_hw_dev(hw);
- struct ieee80211_bss_conf *pri_link_conf;
struct mt792x_bss_conf *mconf;
u8 band_idx;
@@ -2922,12 +2921,6 @@ static int mt7925_assign_vif_chanctx(struct ieee80211_hw *hw,
if (ieee80211_vif_is_mld(vif)) {
mconf = mt792x_vif_to_link(mvif, link_conf->link_id);
- pri_link_conf = mt792x_vif_to_bss_conf(vif, mvif->deflink_id);
-
- if (vif->type == NL80211_IFTYPE_STATION &&
- mconf == &mvif->bss_conf)
- mt7925_mcu_add_bss_info(&dev->phy, NULL, pri_link_conf,
- NULL, true);
} else {
mconf = &mvif->bss_conf;
@@ -2961,16 +2954,10 @@ static void mt7925_unassign_vif_chanctx(struct ieee80211_hw *hw,
mutex_lock(&dev->mt76.mutex);
- if (ieee80211_vif_is_mld(vif)) {
+ if (ieee80211_vif_is_mld(vif))
mconf = mt792x_vif_to_link(mvif, link_conf->link_id);
-
- if (vif->type == NL80211_IFTYPE_STATION &&
- mconf == &mvif->bss_conf)
- mt7925_mcu_add_bss_info(&dev->phy, NULL, link_conf,
- NULL, false);
- } else {
+ else
mconf = &mvif->bss_conf;
- }
mctx->bss_conf = NULL;
mconf->mt76.ctx = NULL;
--
2.45.2
More information about the Linux-mediatek
mailing list