From 3b2a29676b2efbc828ae3db272b347f553909d94 Mon Sep 17 00:00:00 2001 From: Myles Watson Date: Wed, 15 Mar 2017 06:28:09 -0700 Subject: [PATCH] Bluetooth: Don't disable LPM at power off The power mode should be unimportant if power off succeeds. Test: Switch users (Toggles Bluetooth under CPU load) Bug: 36026072 Change-Id: I09fafe4d4f9a466a7e12e617925f98ef3805c738 --- bluetooth/1.0/default/vendor_interface.cc | 7 ------- 1 file changed, 7 deletions(-) diff --git a/bluetooth/1.0/default/vendor_interface.cc b/bluetooth/1.0/default/vendor_interface.cc index 57ea1a3ee8..26f52f7205 100644 --- a/bluetooth/1.0/default/vendor_interface.cc +++ b/bluetooth/1.0/default/vendor_interface.cc @@ -266,13 +266,6 @@ bool VendorInterface::Open(InitializeCompleteCallback initialize_complete_cb, } void VendorInterface::Close() { - // These callbacks may send HCI events (vendor-dependent), so make sure to - // StopWatching the file descriptor after this. - if (lib_interface_ != nullptr) { - bt_vendor_lpm_mode_t mode = BT_VND_LPM_DISABLE; - lib_interface_->op(BT_VND_OP_LPM_SET_MODE, &mode); - } - fd_watcher_.StopWatchingFileDescriptors(); if (hci_ != nullptr) {