From 9ab1946281916b06df6cb2e5eb37ad12cd4dce4a Mon Sep 17 00:00:00 2001 From: YK Jeffrey Chao Date: Wed, 17 Oct 2012 22:00:32 -0700 Subject: 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 --- btif/src/btif_core.c | 4 ++++ 1 file changed, 4 insertions(+) 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 */ -- cgit v1.1