Bluetooth: Call vendor cleanup() in Close()

Bug: 62453652
Test: sailfish and angler start/stop Bluetooth, pair
Change-Id: I8ba80ae1802d1f524acb1d8e26b5bb41fc1612d0
(cherry picked from commit 9eee83093f)
This commit is contained in:
Myles Watson
2017-06-08 08:38:58 -07:00
parent 11e9b588c4
commit 5082bca12e

View File

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