wl12xx: sleep instead of wakeup after tx work
authorEliad Peller <eliad@wizery.com>
Mon, 4 Apr 2011 07:38:47 +0000 (10:38 +0300)
committerLuciano Coelho <coelho@ti.com>
Mon, 2 May 2011 07:25:22 +0000 (10:25 +0300)
commit d05c806 ("wl12xx: rearrange some ELP wake_up/sleep calls")
introduced a bug in which wl1271_ps_elp_wakeup() was called instead
of wl1271_ps_elp_sleep() after completing the tx work.

Reported-by: Arik Nemtsov <arik@wizery.com>
Signed-off-by: Eliad Peller <eliad@wizery.com>
Signed-off-by: Luciano Coelho <coelho@ti.com>
drivers/net/wireless/wl12xx/tx.c

index 7a3339f..c836659 100644 (file)
@@ -630,7 +630,7 @@ void wl1271_tx_work(struct work_struct *work)
 
        wl1271_tx_work_locked(wl);
 
-       wl1271_ps_elp_wakeup(wl);
+       wl1271_ps_elp_sleep(wl);
 out:
        mutex_unlock(&wl->mutex);
 }