summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTreeHugger Robot <treehugger-gerrit@google.com>2017-06-12 22:50:33 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2017-06-12 22:50:34 +0000
commit32ee11026958f9fe0f358410897160a848a89280 (patch)
tree18640e0e8672cbf3e5af46a5157f7d6d6f4bec47
parent14b34e19d6b57a9b54f6e7098abbd503944dd71a (diff)
parent5082bca12e3869de381fb7068dfcb9a23a496cfc (diff)
downloadplatform_hardware_interfaces-32ee11026958f9fe0f358410897160a848a89280.tar.gz
platform_hardware_interfaces-32ee11026958f9fe0f358410897160a848a89280.tar.bz2
platform_hardware_interfaces-32ee11026958f9fe0f358410897160a848a89280.zip
Merge "Bluetooth: Call vendor cleanup() in Close()" into oc-dev
-rw-r--r--bluetooth/1.0/default/vendor_interface.cc2
1 files changed, 2 insertions, 0 deletions
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) {