summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/mediatek/mt76/mt76x02_mac.c
diff options
context:
space:
mode:
authorFelix Fietkau2019-01-11 13:37:43 +0100
committerFelix Fietkau2019-01-17 14:44:57 +0100
commit013b2dff8153b4c01d2179dbefec6b9108383802 (patch)
treebec148b9cd0f7d8950ad7a8c5ee4376f4b2789a9 /drivers/net/wireless/mediatek/mt76/mt76x02_mac.c
parentmt76: add led support to mt76x0e driver (diff)
downloadkernel-qcow2-linux-013b2dff8153b4c01d2179dbefec6b9108383802.tar.gz
kernel-qcow2-linux-013b2dff8153b4c01d2179dbefec6b9108383802.tar.xz
kernel-qcow2-linux-013b2dff8153b4c01d2179dbefec6b9108383802.zip
mt76: fix tx status reporting for non-probing frames
On MT76x2, the hardware does not report tx status in the FIFO register, if the packet id is 0. Change the allocation of packet IDs to use 0 for no-ack packets, 1 for non-probing packets and 2-255 for packets with tx status requested. Fixes rate control issues Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'drivers/net/wireless/mediatek/mt76/mt76x02_mac.c')
-rw-r--r--drivers/net/wireless/mediatek/mt76/mt76x02_mac.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/mediatek/mt76/mt76x02_mac.c b/drivers/net/wireless/mediatek/mt76/mt76x02_mac.c
index 6adea0278284..38cd77d30f5c 100644
--- a/drivers/net/wireless/mediatek/mt76/mt76x02_mac.c
+++ b/drivers/net/wireless/mediatek/mt76/mt76x02_mac.c
@@ -433,7 +433,7 @@ void mt76x02_send_tx_status(struct mt76x02_dev *dev,
}
if (wcid) {
- if (stat->pktid)
+ if (stat->pktid >= MT_PACKET_ID_FIRST)
status.skb = mt76_tx_status_skb_get(mdev, wcid,
stat->pktid, &list);
if (status.skb)