summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin F. Haggerty <kevin.f.haggerty@gmail.com>2016-06-17 19:38:00 -0600
committerEthan Chen <intervigil@gmail.com>2016-06-20 12:02:54 -0700
commit1415972ac5aae4673586b0c09dcea6975ad77b3a (patch)
treeaa4161a866c1b5609d1dafa03f206947fab36523
parent69acf8780c156fe219d3c54c3038af98dbf98e82 (diff)
downloadandroid_hardware_broadcom_libbt-cm-13.0.tar.gz
android_hardware_broadcom_libbt-cm-13.0.tar.bz2
android_hardware_broadcom_libbt-cm-13.0.zip
* BT-HCI has guards in place to not call it based on the size attribute of bt_vendor_interface_t, but we have populated that with the expected value of a fully-implemented interface. Just add the empty function and don't completely explode if we get here. Change-Id: Ie87cc5ab1fc59a39cdd4d26ecbc738b1033ec199
-rwxr-xr-xsrc/bt_vendor_brcm.c17
1 files changed, 13 insertions, 4 deletions
diff --git a/src/bt_vendor_brcm.c b/src/bt_vendor_brcm.c
index 082664f..ca1d657 100755
--- a/src/bt_vendor_brcm.c
+++ b/src/bt_vendor_brcm.c
@@ -248,10 +248,19 @@ static void cleanup( void )
bt_vendor_cbacks = NULL;
}
+/** SSR cleanup is used in HW reset cases
+ * which would close all the client channels
+ * and turns off the chip */
+static void ssr_cleanup( int reason )
+{
+ BTVNDDBG("ssr_cleanup");
+}
+
// Entry point of DLib
const bt_vendor_interface_t BLUETOOTH_VENDOR_LIB_INTERFACE = {
- sizeof(bt_vendor_interface_t),
- init,
- op,
- cleanup
+ .size = sizeof(bt_vendor_interface_t),
+ .init = init,
+ .op = op,
+ .cleanup = cleanup,
+ .ssr_cleanup = ssr_cleanup,
};