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
diff --git a/system/stack/acl/btm_acl.cc b/system/stack/acl/btm_acl.cc
index 8010a21..bc6da0f 100644
--- a/system/stack/acl/btm_acl.cc
+++ b/system/stack/acl/btm_acl.cc
@@ -2901,10 +2901,17 @@
}
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);
}