]> git.baikalelectronics.ru Git - kernel.git/commit
staging: wfx: fix AC priority
authorJérôme Pouiller <jerome.pouiller@silabs.com>
Fri, 29 May 2020 12:16:02 +0000 (14:16 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 16 Jun 2020 19:22:50 +0000 (21:22 +0200)
commitca95aa65cdf084008470e6a6c075c8093d7d929d
treedcdb18b8ec0c94d2138db2ccbaac3dc391776e26
parent2e0873da09585b8a2daf9ca8c2facd15f454ec3f
staging: wfx: fix AC priority

In order to work properly all the queues of the device must be filled (the
device chooses itself the queue to use depending of AC parameters and
other things). It is the job of wfx_tx_queues_get_skb() to choose which
queue must be filled. However, the sorting algorithm was inverted, so it
prioritized the already filled queue! Consequently, the AC priorities was
badly broken.

Fixes: d141cb7b1f860 ("staging: wfx: change the way to choose frame to send")
Signed-off-by: Jérôme Pouiller <jerome.pouiller@silabs.com>
Link: https://lore.kernel.org/r/20200529121603.1050891-1-Jerome.Pouiller@silabs.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wfx/queue.c