Commit 6d51cae2 authored by Felix Fietkau's avatar Felix Fietkau

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

Avoid accidentally mapping them to WCID 0 on completion
Signed-off-by: default avatarFelix Fietkau <nbd@nbd.name>
parent 1d85dc67
...@@ -191,6 +191,7 @@ mt76_dma_add_buf(struct mt76_dev *dev, struct mt76_queue *q, ...@@ -191,6 +191,7 @@ mt76_dma_add_buf(struct mt76_dev *dev, struct mt76_queue *q,
q->entry[idx].txwi = txwi; q->entry[idx].txwi = txwi;
q->entry[idx].skb = skb; q->entry[idx].skb = skb;
q->entry[idx].wcid = 0xffff;
return idx; return idx;
} }
......
...@@ -256,6 +256,7 @@ mt76s_tx_queue_skb(struct mt76_dev *dev, struct mt76_queue *q, ...@@ -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].skb = tx_info.skb;
q->entry[q->head].buf_sz = len; q->entry[q->head].buf_sz = len;
q->entry[q->head].wcid = 0xffff;
smp_wmb(); smp_wmb();
......
...@@ -925,6 +925,7 @@ mt76u_tx_queue_skb(struct mt76_dev *dev, struct mt76_queue *q, ...@@ -925,6 +925,7 @@ mt76u_tx_queue_skb(struct mt76_dev *dev, struct mt76_queue *q,
q->head = (q->head + 1) % q->ndesc; q->head = (q->head + 1) % q->ndesc;
q->entry[idx].skb = tx_info.skb; q->entry[idx].skb = tx_info.skb;
q->entry[idx].wcid = 0xffff;
q->queued++; q->queued++;
return idx; return idx;
......
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