Commit 4d542744 authored by Ming Yen Hsieh's avatar Ming Yen Hsieh Committed by Felix Fietkau
Browse files

wifi: mt76: mt7925: Fix incorrect MLD address in bss_mld_tlv for MLO support



For this TLV, the address should be set to the MLD address rather than
the link address.

Fixes: 86c051f2 ("wifi: mt76: mt7925: enabling MLO when the firmware supports it")
Signed-off-by: default avatarMing Yen Hsieh <mingyen.hsieh@mediatek.com>
Signed-off-by: default avatarSean Wang <sean.wang@mediatek.com>
Link: https://patch.msgid.link/20241211011926.5002-2-sean.wang@kernel.org


Signed-off-by: default avatarFelix Fietkau <nbd@nbd.name>
parent 9e4c3a00
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -2459,6 +2459,7 @@ static void
mt7925_mcu_bss_mld_tlv(struct sk_buff *skb,
		       struct ieee80211_bss_conf *link_conf)
{
	struct ieee80211_vif *vif = link_conf->vif;
	struct mt792x_bss_conf *mconf = mt792x_link_conf_to_mconf(link_conf);
	struct mt792x_vif *mvif = (struct mt792x_vif *)link_conf->vif->drv_priv;
	struct bss_mld_tlv *mld;
@@ -2479,7 +2480,7 @@ mt7925_mcu_bss_mld_tlv(struct sk_buff *skb,
	mld->eml_enable = !!(link_conf->vif->cfg.eml_cap &
			     IEEE80211_EML_CAP_EMLSR_SUPP);

	memcpy(mld->mac_addr, link_conf->addr, ETH_ALEN);
	memcpy(mld->mac_addr, vif->addr, ETH_ALEN);
}

static void