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

Commit 5ed79cf3 authored by Chris Manton's avatar Chris Manton
Browse files

Plumb through acl_create|cancel_le_connection

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

Change-Id: I7c766087716777c274866bff20c197ea41fc80f8
parent 9edb70df
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -2901,10 +2901,17 @@ void acl_write_automatic_flush_timeout(const RawAddress& bd_addr,
}

bool acl_create_le_connection(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);
}

void acl_cancel_le_connection(const RawAddress& bd_addr) {
  if (bluetooth::shim::is_gd_acl_enabled()) {
    return bluetooth::shim::ACL_CancelLeConnection(bd_addr);
  }
  connection_manager::direct_connect_remove(CONN_MGR_ID_L2CAP, bd_addr);
}