• Yan-Hsuan Chuang's avatar
    rtw88: flush hardware tx queues · 1131ad7f
    Yan-Hsuan Chuang authored
    Sometimes mac80211 will ask us to flush the hardware queues.
    To flush them, first we need to get the corresponding priority queues
    from the RQPN mapping table.
    
    Then we can check the available pages are equal to the originally
    reserved pages, which means the hardware has returned all of the pages
    it used to transmit.
    
    Note that now we only check for 100 ms for the priority queue, but
    sometimes if we have a lot of traffic (ex. 100Mbps up), some of the
    packets could be dropped.
    Signed-off-by: default avatarYan-Hsuan Chuang <yhchuang@realtek.com>
    Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
    1131ad7f
mac80211.c 15 KB