]> git.baikalelectronics.ru Git - kernel.git/commit
iwlegacy: always monitor for stuck queues
authorStanislaw Gruszka <sgruszka@redhat.com>
Wed, 4 Jul 2012 11:20:20 +0000 (13:20 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 9 Jul 2012 19:01:02 +0000 (15:01 -0400)
commited175f4459b630b37d75ee4456383806d01c5fe2
treeb7d3799e7c33b8736ecf9874d11aef8b06fc4334
parent2201055f3877a645e5b2d536f670230bf3acc52b
iwlegacy: always monitor for stuck queues

This is iwlegacy version of:

commit 58e319e2983d08ccc6c0fb9c21fc24c6c916c3ad
Author: Johannes Berg <johannes.berg@intel.com>
Date:   Sun Mar 4 08:50:46 2012 -0800

    iwlwifi: always monitor for stuck queues

    If we only monitor while associated, the following
    can happen:
     - we're associated, and the queue stuck check
       runs, setting the queue "touch" time to X
     - we disassociate, stopping the monitoring,
       which leaves the time set to X
     - almost 2s later, we associate, and enqueue
       a frame
     - before the frame is transmitted, we monitor
       for stuck queues, and find the time set to
       X, although it is now later than X + 2000ms,
       so we decide that the queue is stuck and
       erroneously restart the device

Cc: stable@vger.kernel.org
Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/iwlegacy/common.c