]> git.baikalelectronics.ru Git - kernel.git/commit
mt76: mt76x02: fix tx reordering on rate control probing without a-mpdu
authorFelix Fietkau <nbd@nbd.name>
Thu, 6 Jun 2019 07:22:15 +0000 (09:22 +0200)
committerFelix Fietkau <nbd@nbd.name>
Thu, 27 Jun 2019 10:58:13 +0000 (12:58 +0200)
commiteb857ec3c644671e8a63fa913f29dc00a70abdb2
tree1089fbd998ad0991dcba3b9b1a47972d444c652d
parent231b021fdbf3b360accbec08e50df14af508117e
mt76: mt76x02: fix tx reordering on rate control probing without a-mpdu

To avoid aggregating rate control probing packets with other traffic, and to
ensure that the probing rate gets used, probing packets get assigned a different
internal queueing priority.
This causes packets to be transmitted in a different order, which is compensated
by the receiver side reordering.
However, if A-MPDU is disabled, this reordering can become visible to upper
layers on the receiver side. Disable the priority change if A-MPDU is disabled.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt76x02_txrx.c
drivers/net/wireless/mediatek/mt76/mt76x02_usb_core.c