summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOm Prakash Singh <omp@nvidia.com>2014-01-15 14:45:13 +0530
committerRiham Haidar <rhaidar@nvidia.com>2014-02-14 15:24:36 -0800
commitc6ce8d174f3ed598317fb1c9cf72a3541c183f09 (patch)
tree52fec0b28dbc5d0ea50a5f709bd1afe9058743d3
parent1282e9ee337d735b3c66425230d48ebb8c6573a5 (diff)
net: wireless: bcmdhd: reduce wakelock timeout to 500ms
when a network ping through wifi happens in LP0, it takes 2.4s to handle the ping and go back to lp0. By reducing the timeout we could bring the wakeup from LP0 duration to less than one second which decreases the power consumption. Bug 1392718 Change-Id: Ia369a73fb4e834f46003e318fe2c413e57200b61 Signed-off-by: Om Prakash Singh <omp@nvidia.com> Reviewed-on: http://git-master/r/343714 (cherry picked from commit d8f59347389086a64e0b1dec0932e6cc36d702e2) Reviewed-on: http://git-master/r/365612 Reviewed-by: Narayan Reddy <narayanr@nvidia.com> Tested-by: Narayan Reddy <narayanr@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
-rwxr-xr-xdrivers/net/wireless/bcmdhd/dhd.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/bcmdhd/dhd.h b/drivers/net/wireless/bcmdhd/dhd.h
index 20ad570ffd07..af014ba4affa 100755
--- a/drivers/net/wireless/bcmdhd/dhd.h
+++ b/drivers/net/wireless/bcmdhd/dhd.h
@@ -453,7 +453,7 @@ inline static void MUTEX_UNLOCK_SOFTAP_SET(dhd_pub_t * dhdp)
dhd_os_wake_lock_ctrl_timeout_enable(pub, val)
#define DHD_OS_WAKE_LOCK_CTRL_TIMEOUT_CANCEL(pub) \
dhd_os_wake_lock_ctrl_timeout_cancel(pub)
-#define DHD_PACKET_TIMEOUT_MS 1000
+#define DHD_PACKET_TIMEOUT_MS 500
#define DHD_EVENT_TIMEOUT_MS 1500