summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Shmidt <dimitrysh@google.com>2010-02-24 14:08:12 -0800
committerDmitry Shmidt <dimitrysh@google.com>2010-02-24 14:08:12 -0800
commit3992c00dacad93b3dd2f4f9608e518e05dd05ad4 (patch)
treeb71fea82fff50b28e2eb532546107ecbacdc3915
parent8738984310461378d69db98d8fa75d38c43dd60e (diff)
downloadwlan-3992c00dacad93b3dd2f4f9608e518e05dd05ad4.tar.gz
wl1271: Prevent system from sleeping for 1 sec after new packet arrival
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
-rw-r--r--wl1271/platforms/os/linux/src/osapi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/wl1271/platforms/os/linux/src/osapi.c b/wl1271/platforms/os/linux/src/osapi.c
index 833281a..e1af9c7 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);