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

Commit 83d10dea authored by Chris Manton's avatar Chris Manton
Browse files

Add stack/acl/btm_acl.cc::btm_establish_continue_from_address

New API to prevent direct access of tACL_CONN

Working towards encapsulation of tACL_CONN

Bug: 159815595
Tag: #refactor
Test: compile & verify basic functions working

Change-Id: If1d05a0080580ce41783f718ccf7784ab5068fcb
parent 8690d2ed
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -1102,6 +1102,17 @@ void btm_establish_continue(tACL_CONN* p_acl_cb) {
                p_acl_cb->hci_handle);
}

void btm_establish_continue_from_address(const RawAddress& bda,
                                         tBT_TRANSPORT transport) {
  tACL_CONN* p_acl = btm_bda_to_acl(bda, transport);
  if (p_acl == nullptr) {
    BTM_TRACE_ERROR("%s Unable to find acl control block to continue",
                    __func__);
    return;
  }
  btm_establish_continue(p_acl);
}

/*******************************************************************************
 *
 * Function         BTM_SetDefaultLinkSuperTout
+3 −0
Original line number Diff line number Diff line
@@ -250,3 +250,6 @@ bool acl_refresh_remote_address(const tBTM_SEC_DEV_REC* p_dev_rec,
                                const RawAddress& remote_bda,
                                tBT_TRANSPORT transport, uint8_t rra_type,
                                const RawAddress& rpa);

void btm_establish_continue_from_address(const RawAddress& remote_bda,
                                         tBT_TRANSPORT transport);