Skip to content

Commit fca9615

Browse files
committed
mt76: mt7603: fix up hardware queue index for PS filtered packets
Make the queue index match the hardware queue on which they get sent out Signed-off-by: Felix Fietkau <nbd@nbd.name>
1 parent f25e813 commit fca9615

File tree

1 file changed

+4
-0
lines changed
  • drivers/net/wireless/mediatek/mt76/mt7603

1 file changed

+4
-0
lines changed

drivers/net/wireless/mediatek/mt76/mt7603/dma.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@ mt7603_rx_loopback_skb(struct mt7603_dev *dev, struct sk_buff *skb)
5050
val = le32_to_cpu(txd[0]);
5151
skb_set_queue_mapping(skb, FIELD_GET(MT_TXD0_Q_IDX, val));
5252

53+
val &= ~(MT_TXD0_P_IDX | MT_TXD0_Q_IDX);
54+
val |= FIELD_PREP(MT_TXD0_Q_IDX, MT_TX_HW_QUEUE_MGMT);
55+
txd[0] = cpu_to_le32(val);
56+
5357
spin_lock_bh(&dev->ps_lock);
5458
__skb_queue_tail(&msta->psq, skb);
5559
if (skb_queue_len(&msta->psq) >= 64) {

0 commit comments

Comments
 (0)