mt76x2: fix WMM parameter configuration
authorLorenzo Bianconi <lorenzo.bianconi@redhat.com>
Wed, 17 Jan 2018 11:01:27 +0000 (12:01 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 24 Jan 2018 15:11:03 +0000 (17:11 +0200)
commit1cbbf69cc83e7f567918a921c4c1529429c7354e
tree0d37fcb4ac5aef0fffee169623f31b66c5c51d53
parentebdd7b491b8a65d65936e07004caabca4a3c94a0
mt76x2: fix WMM parameter configuration

Fix hw queue configuration since mt76x2 devices use a reverse queue
enumeration respect to mac80211 one:
 - 0: AC_BE
 - 1: AC_BK
 - 2: AC_VI
 - 3: AC_VO

The issue can be reproduced sending two concurrent flow using
two separate queues:
 - VO: 20Mbps UDP traffic
 - BE: TCP traffic

In this scenario the UDP traffic will be blocked by the TCP one.
Fix it configuring properly WMM hw queue parameters

Fixes: 7bc04215a66b ("mt76: add driver code for MT76x2e")
Tested-by: Gaetano Catalli <gaetano.catalli@gmail.com>
Signed-off-by: Gaetano Catalli <gaetano.catalli@gmail.com>
Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@redhat.com>
Acked-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/mediatek/mt76/mt76x2_dma.c
drivers/net/wireless/mediatek/mt76/mt76x2_main.c