From c0aee0ce877bba6e14e6582935c07f4ada50b9dd Mon Sep 17 00:00:00 2001 From: Myles Watson Date: Mon, 13 Mar 2017 12:35:25 -0700 Subject: [PATCH] Bluetooth: No power off before power on Test: Switch users (toggles Bluetooth under load) Bug: 36026072 Change-Id: I7eef35e19fbb4cf825c2583ec0af573733b24f9d --- bluetooth/1.0/default/vendor_interface.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/bluetooth/1.0/default/vendor_interface.cc b/bluetooth/1.0/default/vendor_interface.cc index a6507dd0d8..57ea1a3ee8 100644 --- a/bluetooth/1.0/default/vendor_interface.cc +++ b/bluetooth/1.0/default/vendor_interface.cc @@ -215,11 +215,9 @@ bool VendorInterface::Open(InitializeCompleteCallback initialize_complete_cb, ALOGD("%s vendor library loaded", __func__); - // Power cycle chip + // Power on the controller - int power_state = BT_VND_PWR_OFF; - lib_interface_->op(BT_VND_OP_POWER_CTRL, &power_state); - power_state = BT_VND_PWR_ON; + int power_state = BT_VND_PWR_ON; lib_interface_->op(BT_VND_OP_POWER_CTRL, &power_state); // Get the UART socket(s)