Commit fca9615f authored by Felix Fietkau's avatar Felix Fietkau

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: default avatarFelix Fietkau <nbd@nbd.name>
parent f25e813b
...@@ -50,6 +50,10 @@ mt7603_rx_loopback_skb(struct mt7603_dev *dev, struct sk_buff *skb) ...@@ -50,6 +50,10 @@ mt7603_rx_loopback_skb(struct mt7603_dev *dev, struct sk_buff *skb)
val = le32_to_cpu(txd[0]); val = le32_to_cpu(txd[0]);
skb_set_queue_mapping(skb, FIELD_GET(MT_TXD0_Q_IDX, val)); skb_set_queue_mapping(skb, FIELD_GET(MT_TXD0_Q_IDX, val));
val &= ~(MT_TXD0_P_IDX | MT_TXD0_Q_IDX);
val |= FIELD_PREP(MT_TXD0_Q_IDX, MT_TX_HW_QUEUE_MGMT);
txd[0] = cpu_to_le32(val);
spin_lock_bh(&dev->ps_lock); spin_lock_bh(&dev->ps_lock);
__skb_queue_tail(&msta->psq, skb); __skb_queue_tail(&msta->psq, skb);
if (skb_queue_len(&msta->psq) >= 64) { if (skb_queue_len(&msta->psq) >= 64) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment