Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c5261892 authored by Srinu Jella's avatar Srinu Jella
Browse files

Set disable timer in case of any active ACL connection

Use Case: Disable time out when atleast one active ACL connections

Steps:
1. Turn ON Bluetooth
2. Connect to any Headset
3. Turn OFF bluetooth.

Failure: Turn OFF bluetooth is failed when atleast one active ACL connections

Root Cause:i If we have one or more active ACL links, so it is not notitying
BTA_DM_DISABLE_EVT to upper layer.

Fix: Set disable timer in case of any active ACL connection

Change-Id: Ica47717119f1ab9fa9f4f5244e8483c408276a2a
parent fab15b55
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -529,7 +529,7 @@ static void bta_dm_disable_timer_cback(void *data)

    APPL_TRACE_EVENT("%s trial %u", __func__, param);

    if ((BTM_GetNumAclLinks() && param) == 0)
    if (BTM_GetNumAclLinks() && (param == 0))
    {
        for(i=0; i<bta_dm_cb.device_list.count; i++)
        {