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

Commit 6787aea4 authored by Chris Manton's avatar Chris Manton Committed by Automerger Merge Worker
Browse files

L2cap CoC callback use Confirm not Ind on server am: 00b79b53 am: 72237670...

L2cap CoC callback use Confirm not Ind on server am: 00b79b53 am: 72237670 am: e8968ea1 am: 8afa256e

Original change: https://android-review.googlesource.com/c/platform/system/bt/+/1442318

Change-Id: I6f3ccd4a87011f1c8b3ad79a65612e609f3cd1ca
parents a6ab0311 8afa256e
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -91,7 +91,7 @@ static void l2c_csm_indicate_connection_open(tL2C_CCB* p_ccb) {
        p_ccb->p_lcb->remote_bd_addr, p_ccb->local_cid, p_ccb->p_rcb->psm,
        p_ccb->remote_id);
  }
  if (p_ccb->chnl_state == CST_OPEN) {
  if (p_ccb->chnl_state == CST_OPEN && !p_ccb->p_lcb->is_transport_ble()) {
    (*p_ccb->p_rcb->api.pL2CA_ConfigCfm_Cb)(
        p_ccb->local_cid, p_ccb->connection_initiator, &p_ccb->peer_cfg);
  }
@@ -563,9 +563,7 @@ static void l2c_csm_w4_l2cap_connect_rsp(tL2C_CCB* p_ccb, uint16_t event,
        /* Connection is completed */
        alarm_cancel(p_ccb->l2c_ccb_timer);
        p_ccb->chnl_state = CST_OPEN;
        (*p_ccb->p_rcb->api.pL2CA_ConnectInd_Cb)(
            p_ccb->p_lcb->remote_bd_addr, p_ccb->local_cid, p_ccb->p_rcb->psm,
            p_ccb->remote_id);
        l2c_csm_indicate_connection_open(p_ccb);
      } else {
        p_ccb->chnl_state = CST_CONFIG;
        alarm_set_on_mloop(p_ccb->l2c_ccb_timer, L2CAP_CHNL_CFG_TIMEOUT_MS,