diff options
author | Kiran Kelageri <kirankelageri@codeaurora.org> | 2015-08-04 15:46:33 -0700 |
---|---|---|
committer | Linux Build Service Account <lnxbuild@localhost> | 2015-10-06 03:21:49 -0600 |
commit | 4a924fdcae4493b082295b76511d448456c5e36a (patch) | |
tree | fef44680c55ba85f3175fdb599da8eb23e27ddd0 /main | |
parent | 273de486f3b1771be80b83ed30fa7df4449c7eab (diff) | |
download | android_system_bt-4a924fdcae4493b082295b76511d448456c5e36a.tar.gz android_system_bt-4a924fdcae4493b082295b76511d448456c5e36a.tar.bz2 android_system_bt-4a924fdcae4493b082295b76511d448456c5e36a.zip |
Bluetooth: Enable SSR.
Enabling SSR feature.
Change-Id: I26eab5b3a10ac7823ff5e9f2adc3bc187939c87e
Diffstat (limited to 'main')
-rw-r--r-- | main/bte_main.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/main/bte_main.c b/main/bte_main.c index d08d6f615..f15f8e4cd 100644 --- a/main/bte_main.c +++ b/main/bte_main.c @@ -270,3 +270,22 @@ void bte_main_hci_send (BT_HDR *p_msg, UINT16 event) GKI_freebuf(p_msg); } } +/****************************************************************************** +** +** Function bte_ssr_cleanup +** +** Description sends PWR_OFF to vendor library so that harware would be +** turned off as part of hardware subsystem crash +** +** Returns None +** +******************************************************************************/ +void bte_ssr_cleanup(void) +{ + APPL_TRACE_DEBUG("%s", __FUNCTION__); + if (hci != NULL) { + hci->ssr_cleanup(); + } else { + APPL_TRACE_ERROR("%s hci is NULL", __FUNCTION__); + } +} |