mt76: fix tx status reporting for non-probing frames
authorFelix Fietkau <nbd@nbd.name>
Fri, 11 Jan 2019 12:37:43 +0000 (13:37 +0100)
committerFelix Fietkau <nbd@nbd.name>
Thu, 17 Jan 2019 13:44:57 +0000 (14:44 +0100)
commit013b2dff8153b4c01d2179dbefec6b9108383802
treebec148b9cd0f7d8950ad7a8c5ee4376f4b2789a9
parent5c9decdfbb409d3c410c3e2308cb6110557eb0a7
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>
drivers/net/wireless/mediatek/mt76/mt76.h
drivers/net/wireless/mediatek/mt76/mt76x02_mac.c
drivers/net/wireless/mediatek/mt76/mt76x02_txrx.c
drivers/net/wireless/mediatek/mt76/mt76x02_usb_core.c
drivers/net/wireless/mediatek/mt76/tx.c