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

Commit 98acb087 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Restore LE CoC l2cap conn rsp" am: 65eab635

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

Change-Id: Ib115f2215e673eb3d171a6c3704ee5afd99a506d
parents 24219d71 65eab635
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -628,6 +628,11 @@ void l2cble_process_sig_cmd(tL2C_LCB* p_lcb, uint8_t* p, uint16_t pkt_len) {
      p_ccb->p_rcb = p_rcb;
      p_ccb->remote_cid = rcid;

      p_ccb->local_conn_cfg.mtu = L2CAP_SDU_LENGTH_LE_MAX;
      p_ccb->local_conn_cfg.mps =
          controller_get_interface()->get_acl_data_size_ble();
      p_ccb->local_conn_cfg.credits = L2CAP_LE_CREDIT_DEFAULT,

      p_ccb->peer_conn_cfg.mtu = mtu;
      p_ccb->peer_conn_cfg.mps = mps;
      p_ccb->peer_conn_cfg.credits = initial_credit;
+1 −1
Original line number Diff line number Diff line
@@ -453,8 +453,8 @@ static void l2c_csm_term_w4_sec_comp(tL2C_CCB* p_ccb, uint16_t event,
        alarm_set_on_mloop(p_ccb->l2c_ccb_timer, L2CAP_CHNL_CONNECT_TIMEOUT_MS,
                           l2c_ccb_timer_timeout, p_ccb);

        if (p_ccb->p_lcb->transport != BT_TRANSPORT_LE) {
        l2c_csm_send_connect_rsp(p_ccb);
        if (p_ccb->p_lcb->transport != BT_TRANSPORT_LE) {
          l2c_csm_send_config_req(p_ccb);
        } else {
          L2CAP_TRACE_API("L2CAP - Calling Connect_Ind_Cb(), CID: 0x%04x",