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

Commit e3e2dd33 authored by Jacky Cheung's avatar Jacky Cheung Committed by Android (Google) Code Review
Browse files

Merge "DO NOT MERGE ANYWHERE Fix LE disconnecting right after pairing" into cw-f-dev

parents 35bc98fe 5be9113f
Loading
Loading
Loading
Loading
+6 −0
Original line number Original line Diff line number Diff line
@@ -1745,6 +1745,12 @@ void l2cu_release_ccb (tL2C_CCB *p_ccb)
    {
    {
        if (!p_lcb->ccb_queue.p_first_ccb)
        if (!p_lcb->ccb_queue.p_first_ccb)
        {
        {
            // Closing a security channel on LE device should not start connection
            // timeout
            if (p_lcb->transport == BT_TRANSPORT_LE &&
                p_ccb->local_cid == L2CAP_SMP_CID)
                return;

            l2cu_no_dynamic_ccbs (p_lcb);
            l2cu_no_dynamic_ccbs (p_lcb);
        }
        }
        else
        else