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

Commit d22f83f3 authored by Chris Manton's avatar Chris Manton
Browse files

Use new ACL API for btm_establish_continue

Working towards encapsulation of tACL_CONN

Bug: 159815595
Tag: #refactor
Test: compile & verify basic functions working
Change-Id: I7029221cf5a0591224549ffafdd73bde8db9a4c7
parent 83d10dea
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -234,12 +234,12 @@ uint16_t L2CA_GetDisconnectReason(const RawAddress& remote_bda,
 ******************************************************************************/
void l2cble_notify_le_connection(const RawAddress& bda) {
  tL2C_LCB* p_lcb = l2cu_find_lcb_by_bd_addr(bda, BT_TRANSPORT_LE);
  tACL_CONN* p_acl = btm_bda_to_acl(bda, BT_TRANSPORT_LE);
  tL2C_CCB* p_ccb;

  if (p_lcb != NULL && p_acl != NULL && p_lcb->link_state != LST_CONNECTED) {
  if (p_lcb != NULL && BTM_IsAclConnectionUp(bda, BT_TRANSPORT_LE) &&
      p_lcb->link_state != LST_CONNECTED) {
    /* update link status */
    btm_establish_continue(p_acl);
    btm_establish_continue_from_address(bda, BT_TRANSPORT_LE);
    /* update l2cap link status and send callback */
    p_lcb->link_state = LST_CONNECTED;
    l2cu_process_fixed_chnl_resp(p_lcb);