Commit 59ea7af6 authored by Lorenzo Bianconi's avatar Lorenzo Bianconi Committed by Felix Fietkau
Browse files

wifi: mt76: mt7996: Fix mlink lookup in mt7996_tx_prepare_skb



Use proper link_id in mt7996_tx_prepare_skb routine for mlink lookup.

Signed-off-by: default avatarLorenzo Bianconi <lorenzo@kernel.org>
Link: https://patch.msgid.link/20250704-mt7996-mlo-fixes-v1-5-356456c73f43@kernel.org


Signed-off-by: default avatarFelix Fietkau <nbd@nbd.name>
parent 8989d8e9
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1087,9 +1087,9 @@ int mt7996_tx_prepare_skb(struct mt76_dev *mdev, void *txwi_ptr,
		if (wcid->offchannel)
			mlink = rcu_dereference(mvif->mt76.offchannel_link);
		if (!mlink)
			mlink = &mvif->deflink.mt76;
			mlink = rcu_dereference(mvif->mt76.link[wcid->link_id]);

		txp->fw.bss_idx = mlink->idx;
		txp->fw.bss_idx = mlink ? mlink->idx : mvif->deflink.mt76.idx;
	}

	txp->fw.token = cpu_to_le16(id);