From 5082bca12e3869de381fb7068dfcb9a23a496cfc Mon Sep 17 00:00:00 2001 From: Myles Watson Date: Thu, 8 Jun 2017 08:38:58 -0700 Subject: [PATCH] Bluetooth: Call vendor cleanup() in Close() Bug: 62453652 Test: sailfish and angler start/stop Bluetooth, pair Change-Id: I8ba80ae1802d1f524acb1d8e26b5bb41fc1612d0 (cherry picked from commit 9eee83093faf0edd023920b16f5251a17ae97f00) --- bluetooth/1.0/default/vendor_interface.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bluetooth/1.0/default/vendor_interface.cc b/bluetooth/1.0/default/vendor_interface.cc index 68cac5f45e..de6cd79ade 100644 --- a/bluetooth/1.0/default/vendor_interface.cc +++ b/bluetooth/1.0/default/vendor_interface.cc @@ -284,6 +284,8 @@ void VendorInterface::Close() { int power_state = BT_VND_PWR_OFF; lib_interface_->op(BT_VND_OP_POWER_CTRL, &power_state); + + lib_interface_->cleanup(); } if (lib_handle_ != nullptr) {