rt2x00: do not pause queue unconditionally on error path
commit6dd80efd75ce7c2dbd9f117cf585ee2b33a42ee1
authorStanislaw Gruszka <sgruszka@redhat.com>
Tue, 19 Dec 2017 11:33:56 +0000 (19 12:33 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Mon, 8 Jan 2018 17:39:07 +0000 (8 19:39 +0200)
tree907e96d17c26dea1b1a9bae790cd8ebe396becf0
parent3d8f162cb8ecd8cb5f77d92ed27bdc7d8aeb2bae
rt2x00: do not pause queue unconditionally on error path

Pausing queue without checking threshold is racy with txdone path.
Moreover we do not need pause queue on any error, but only if queue
is full - in case when we send RTS frame ( other cases of almost full
queue are already handled in rt2x00queue_write_tx_frame() ).

Patch fixes of theoretically possible problem of pausing empty
queue.

Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Tested-by: Enrico Mioso <mrkiko.rs@gmail.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ralink/rt2x00/rt2x00mac.c