wl1271: Prevent system from sleeping for 1 sec after new packet arrival
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
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 @@
/*-----------------------------------------------------------------------------
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 @@
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);