diff options
author | Kevin F. Haggerty <kevin.f.haggerty@gmail.com> | 2016-06-17 19:38:00 -0600 |
---|---|---|
committer | Ethan Chen <intervigil@gmail.com> | 2016-06-20 12:02:54 -0700 |
commit | 1415972ac5aae4673586b0c09dcea6975ad77b3a (patch) | |
tree | aa4161a866c1b5609d1dafa03f206947fab36523 | |
parent | 69acf8780c156fe219d3c54c3038af98dbf98e82 (diff) | |
download | android_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 |
libbt-vendor (BRCM): Add ssr_cleanupHEADreplicant-6.0-0004-transitionreplicant-6.0-0004-rc6replicant-6.0-0004-rc5-transitionreplicant-6.0-0004-rc5replicant-6.0-0004-rc4replicant-6.0-0004-rc3replicant-6.0-0004-rc2replicant-6.0-0004-rc1replicant-6.0-0004replicant-6.0-0003replicant-6.0-0002replicant-6.0-0001stable/cm-13.0-ZNH5Ycm-13.0
* 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-x | src/bt_vendor_brcm.c | 17 |
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, }; |