From: Ajay Kumar Date: Fri, 6 Nov 2015 07:43:42 +0000 (+0530) Subject: Bluetooth: Kill the BT process immediately on detecting SSR X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=def96dac88553b549002b6528a89a2cff31cfa86;p=android-x86%2Fsystem-bt.git Bluetooth: Kill the BT process immediately on detecting SSR Kill the BT process immediately on detecting SSR CRs-Fixed: 801039 Change-Id: Id5007914140aa26c08579ca85f7622c79d73a00f --- diff --git a/stack/btu/btu_hcif.c b/stack/btu/btu_hcif.c index 4aa2bd7a2..c5b461a80 100644 --- a/stack/btu/btu_hcif.c +++ b/stack/btu/btu_hcif.c @@ -1155,7 +1155,7 @@ static void btu_hcif_hardware_error_evt (UINT8 *p) if (BTM_IsDeviceUp()) BTM_DeviceReset (NULL); - if(*p == 0x0f) + if(*p == 0x0f || (*p == 0x0a)) { HCI_TRACE_ERROR("Ctlr H/w error event - code:Tigger SSR"); bte_ssr_cleanup(0x33);//SSR reason 0x33 = HW ERR EVT