From 3992c00dacad93b3dd2f4f9608e518e05dd05ad4 Mon Sep 17 00:00:00 2001 From: Dmitry Shmidt Date: Wed, 24 Feb 2010 14:08:12 -0800 Subject: wl1271: Prevent system from sleeping for 1 sec after new packet arrival Signed-off-by: Dmitry Shmidt --- wl1271/platforms/os/linux/src/osapi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'wl1271') diff --git a/wl1271/platforms/os/linux/src/osapi.c b/wl1271/platforms/os/linux/src/osapi.c index 833281af..e1af9c72 100644 --- a/wl1271/platforms/os/linux/src/osapi.c +++ b/wl1271/platforms/os/linux/src/osapi.c @@ -593,7 +593,7 @@ void os_InterruptServiced (TI_HANDLE OsContext) /*----------------------------------------------------------------------------- Routine Name: os_wake_lock_timeout -Routine Description: Called to prevent system from suspend for some time +Routine Description: Called to prevent system from suspend for 1 sec Arguments: OsContext - handle to OS context @@ -611,7 +611,7 @@ int os_wake_lock_timeout (TI_HANDLE OsContext) if (drv->wl_packet) { drv->wl_packet = 0; #ifdef CONFIG_HAS_WAKELOCK - wake_lock_timeout(&drv->wl_rxwake, (HZ >> 1)); + wake_lock_timeout(&drv->wl_rxwake, HZ); #endif } spin_unlock_irqrestore(&drv->lock, flags); -- cgit v1.2.3