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

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

Add acl_create_le_connection_with_id

Bug: 166280067
Tag: #refactor
Test: act.py -tc BleCocTest
Test: ble paired 2 phones
Test: classic paired Bose SoundLink

Change-Id: I5f1155951394c3fc073a2b5ef2f57f9e2db2cab4
parent 5ed79cf3
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -2900,12 +2900,16 @@ void acl_write_automatic_flush_timeout(const RawAddress& bd_addr,
  btsnd_hcic_write_auto_flush_tout(p_acl->hci_handle, flush_timeout_in_ticks);
}

bool acl_create_le_connection(const RawAddress& bd_addr) {
bool acl_create_le_connection_with_id(uint8_t id, const RawAddress& bd_addr) {
  if (bluetooth::shim::is_gd_acl_enabled()) {
    bluetooth::shim::ACL_CreateLeConnection(bd_addr);
    return true;
  }
  return connection_manager::direct_connect_add(CONN_MGR_ID_L2CAP, bd_addr);
  return connection_manager::direct_connect_add(id, bd_addr);
}

bool acl_create_le_connection(const RawAddress& bd_addr) {
  return acl_create_le_connection_with_id(CONN_MGR_ID_L2CAP, bd_addr);
}

void acl_cancel_le_connection(const RawAddress& bd_addr) {
+1 −0
Original line number Diff line number Diff line
@@ -27,6 +27,7 @@ void acl_create_classic_connection(const RawAddress& bd_addr,
                                   bool there_are_high_priority_channels,
                                   bool is_bonding);
bool acl_create_le_connection(const RawAddress& bd_addr);
bool acl_create_le_connection_with_id(uint8_t id, const RawAddress& bd_addr);
void acl_cancel_le_connection(const RawAddress& bd_addr);
void acl_reject_connection_request(const RawAddress& bd_addr, uint8_t reason);
void acl_send_data_packet_br_edr(const RawAddress& bd_addr, BT_HDR* p_buf);