Skip to content

Commit 59ea7af

Browse files
LorenzoBianconinbd168
authored andcommitted
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: Lorenzo Bianconi <lorenzo@kernel.org> Link: https://patch.msgid.link/20250704-mt7996-mlo-fixes-v1-5-356456c73f43@kernel.org Signed-off-by: Felix Fietkau <nbd@nbd.name>
1 parent 8989d8e commit 59ea7af

File tree

1 file changed

+2
-2
lines changed
  • drivers/net/wireless/mediatek/mt76/mt7996

1 file changed

+2
-2
lines changed

drivers/net/wireless/mediatek/mt76/mt7996/mac.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1087,9 +1087,9 @@ int mt7996_tx_prepare_skb(struct mt76_dev *mdev, void *txwi_ptr,
10871087
if (wcid->offchannel)
10881088
mlink = rcu_dereference(mvif->mt76.offchannel_link);
10891089
if (!mlink)
1090-
mlink = &mvif->deflink.mt76;
1090+
mlink = rcu_dereference(mvif->mt76.link[wcid->link_id]);
10911091

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

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

0 commit comments

Comments
 (0)