• Sujith Manoharan's avatar
    ath9k: Check for pending frames properly · e2d389b5
    Sujith Manoharan authored
    Pending frames in the driver can be present
    either in the HW queues or SW. ath9k_has_pending_frames()
    currently checks for the HW queues first and then
    checks if any ACs are queued in the driver.
    
    In MCC mode, we need to check the HW queues alone, since
    the SW queues are just marked as 'stopped' - they will
    be processed in the next context switch. But since we
    don't differentiate this now, mention whether we want
    to check if there are frames in the SW queues.
    
    * The flush() callback checks both HW and SW queues.
    * The tx_frames_pending() callback does the same.
    * The call to __ath9k_flush() in MCC mode checks HW queues alone.
    Signed-off-by: default avatarSujith Manoharan <c_manoha@qca.qualcomm.com>
    Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
    e2d389b5
channel.c 38.8 KB