Skip to content
Snippets Groups Projects
Commit da78ce76 authored by Myles Watson's avatar Myles Watson
Browse files

Remove flagged GATT call to connection manager

This is already called in GATT_CancelConnect, which is called everywhere
btm_remove_acl is called.

Bug: 301661850
Test: mma -j32
Change-Id: Ic7b4650a8a991a7ac5caae5fc709a3a81d67b77e
parent 75c1c6bd
No related branches found
No related tags found
No related merge requests found
......@@ -203,19 +203,6 @@ static void disconnect_acl(tACL_CONN& p_acl, tHCI_STATUS reason,
hci_error_code_text(reason).c_str(), comment.c_str());
p_acl.disconnect_reason = reason;
if (bluetooth::common::init_flags::
use_unified_connection_manager_is_enabled()) {
if (!p_acl.is_transport_br_edr()) {
// TODO(aryarahul): this should be moved into GATT, so when a client
// disconnects, it removes its request to autoConnect, even if the ACL
// link stays up due to the presence of other clients.
bluetooth::connection::GetConnectionManager()
.stop_all_connections_to_device(bluetooth::core::ToRustAddress(
tBLE_BD_ADDR{.type = p_acl.active_remote_addr_type,
.bda = p_acl.active_remote_addr}));
}
}
return bluetooth::shim::ACL_Disconnect(
p_acl.hci_handle, p_acl.is_transport_br_edr(), reason, comment);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment