mt76: intialize tx queue entry wcid to 0xffff by default

Avoid accidentally mapping them to WCID 0 on completion

Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
Felix Fietkau
2021-05-09 22:49:09 +02:00
parent 628eee9c38
commit a9bc4d94b7
3 changed files with 3 additions and 0 deletions
+1
View File
@@ -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();