mt76: intialize tx queue entry wcid to 0xffff by default
Avoid accidentally mapping them to WCID 0 on completion Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
@@ -191,6 +191,7 @@ mt76_dma_add_buf(struct mt76_dev *dev, struct mt76_queue *q,
|
||||
|
||||
q->entry[idx].txwi = txwi;
|
||||
q->entry[idx].skb = skb;
|
||||
q->entry[idx].wcid = 0xffff;
|
||||
|
||||
return idx;
|
||||
}
|
||||
|
||||
@@ -256,6 +256,7 @@ mt76s_tx_queue_skb(struct mt76_dev *dev, struct mt76_queue *q,
|
||||
|
||||
q->entry[q->head].skb = tx_info.skb;
|
||||
q->entry[q->head].buf_sz = len;
|
||||
q->entry[q->head].wcid = 0xffff;
|
||||
|
||||
smp_wmb();
|
||||
|
||||
|
||||
@@ -925,6 +925,7 @@ mt76u_tx_queue_skb(struct mt76_dev *dev, struct mt76_queue *q,
|
||||
|
||||
q->head = (q->head + 1) % q->ndesc;
|
||||
q->entry[idx].skb = tx_info.skb;
|
||||
q->entry[idx].wcid = 0xffff;
|
||||
q->queued++;
|
||||
|
||||
return idx;
|
||||
|
||||
Reference in New Issue
Block a user