• Stanislaw Gruszka's avatar
    rt2x00: check against flushing empty queue · 811a3991
    Stanislaw Gruszka authored
    We have check if queue is not empty when start flushing queues on
    by mac80211 callback, but we also can start flushing queues by internal
    driver calls. So move check into rt2x00queue_flush_queue() to assure
    we do not flush empty queue anytime.
    
    Additionally add warning if we start to kick empty queue as in such
    situation we set wrong index in the HW queue, what can confuse the HW
    and have various negative consequences.
    Signed-off-by: default avatarStanislaw Gruszka <sgruszka@redhat.com>
    Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
    811a3991
rt2800mmio.c 26 KB