OSDN Git Service

Bluetooth: Kill the BT process immediately on detecting SSR
authorAjay Kumar <ajayku@codeaurora.org>
Fri, 6 Nov 2015 07:43:42 +0000 (13:13 +0530)
committerLinux Build Service Account <lnxbuild@localhost>
Wed, 24 Aug 2016 14:09:52 +0000 (08:09 -0600)
Kill the BT process immediately on detecting SSR

CRs-Fixed: 801039
Change-Id: Id5007914140aa26c08579ca85f7622c79d73a00f

stack/btu/btu_hcif.c

index 4aa2bd7..c5b461a 100644 (file)
@@ -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