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

Commit 24b16b71 authored by Chris Manton's avatar Chris Manton
Browse files

Remove from shadow acceptlist upon LE connection failure

Bug: 204433265
Tag: #refactor
Test: gd/cert/run

Change-Id: I1b2b9096a3cb5a5de444606abb2f022c224175f5
parent d6ae4b1d
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1481,6 +1481,8 @@ void shim::legacy::Acl::OnLeConnectFail(hci::AddressWithType address_with_type,
  bool enhanced = true; /* TODO logging metrics only */
  tHCI_STATUS status = ToLegacyHciErrorCode(reason);

  pimpl_->shadow_acceptlist_.Remove(address_with_type);

  TRY_POSTING_ON_MAIN(acl_interface_.connection.le.on_failed,
                      legacy_address_with_type, handle, enhanced, status);
  LOG_WARN("Connection failed le remote:%s",