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

Commit 7389e491 authored by Jacky Cheung's avatar Jacky Cheung
Browse files

DO NOT MERGE ANYWHERE Check ACL link on non-opportunistic connection creation

At the time of connection, the idle timeout could have been set to a fixed
value, which is likely to be related to the completion of service discovery
after bonding.  A check on ACL link allows the idle timeout to be reset to no
timeout, which would eliminate local host disconnections observed due to
idle timeouts.

Bug: 37352720
Test: manual
Change-Id: Ie0b24b83020d502cf7c55421a27659215253b4d2
parent 3678d948
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -398,7 +398,7 @@ BOOLEAN gatt_act_connect (tGATT_REG *p_reg, BD_ADDR bd_addr,
    if (ret)
    {
        if (!opportunistic)
            gatt_update_app_use_link_flag(p_reg->gatt_if, p_tcb, TRUE, FALSE);
            gatt_update_app_use_link_flag(p_reg->gatt_if, p_tcb, TRUE, TRUE);
        else
            GATT_TRACE_DEBUG("%s: connection is opportunistic, not updating app usage",
                            __func__);