summaryrefslogtreecommitdiffstats
path: root/btif
diff options
context:
space:
mode:
authorYK Jeffrey Chao <jechao@broadcom.com>2012-10-17 22:00:32 -0700
committerMatthew Xie <mattx@google.com>2012-10-22 23:39:22 -0700
commit9ab1946281916b06df6cb2e5eb37ad12cd4dce4a (patch)
tree693f5711d31c5e13e7db8651ddef501bb8bdfc88 /btif
parentc99ef49dcbff4ad1a316d7a38a2b152296c30ffc (diff)
downloadexternal_bluetooth_bluedroid-9ab1946281916b06df6cb2e5eb37ad12cd4dce4a.zip
external_bluetooth_bluedroid-9ab1946281916b06df6cb2e5eb37ad12cd4dce4a.tar.gz
external_bluetooth_bluedroid-9ab1946281916b06df6cb2e5eb37ad12cd4dce4a.tar.bz2
Add new user-to-kernel interface for Bluetooth low power mode control (2/2)
The bluesleep kernel module was used in Tegra3 platform to perform Bluetooth low power wakelock and interrup control. Add new user-to-kernel interface through proc fs nodes for Bluedroid to feed bluesleep with the HCI_DEV events which bluesleep was monitoring on. Add call to disable LPM mode at turning BT off. bug 7347413 Change-Id: I65b58137ccbc7b3694b805d9be6756304a8da1be
Diffstat (limited to 'btif')
-rwxr-xr-xbtif/src/btif_core.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/btif/src/btif_core.c b/btif/src/btif_core.c
index ac2a0aa..62339a9 100755
--- a/btif/src/btif_core.c
+++ b/btif/src/btif_core.c
@@ -681,6 +681,10 @@ void btif_disable_bluetooth_evt(void)
{
BTIF_TRACE_DEBUG1("%s", __FUNCTION__);
+#if (defined(HCILP_INCLUDED) && HCILP_INCLUDED == TRUE)
+ bte_main_enable_lpm(FALSE);
+#endif
+
bte_main_disable();
/* update local state */