Bluetooth: No power off before power on

Test: Switch users (toggles Bluetooth under load)
Bug: 36026072
Change-Id: I7eef35e19fbb4cf825c2583ec0af573733b24f9d
This commit is contained in:
Myles Watson 2017-03-13 12:35:25 -07:00
parent 48b4ce2e99
commit c0aee0ce87

View file

@ -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)