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

Commit 3b706911 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Handle L2CAP disconnection on incomplete connection"

parents 2d8818c5 1dac3515
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
@@ -654,7 +654,15 @@ static void l2c_csm_w4_l2cap_connect_rsp (tL2C_CCB *p_ccb, uint16_t event, void
                               btu_general_alarm_queue);
        }
        else
        {
            tL2CA_DISCONNECT_CFM_CB *disconnect_cfm = p_ccb->p_rcb->api.pL2CA_DisconnectCfm_Cb;
            l2cu_release_ccb(p_ccb);
            if (disconnect_cfm)
            {
                L2CAP_TRACE_API("%s: L2CAP - Calling DisconnectCfm_Cb(), CID: 0x%04x", __func__, local_cid);
                (*disconnect_cfm)(local_cid, L2CAP_CONN_NO_LINK);
            }
        }
        break;

    case L2CEVT_L2CA_DATA_WRITE:                    /* Upper layer data to send */