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

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

shim: Remove le from shadow accept list after connection

Bug: 183374320
Test: gd/cert/run
Tag: #refactor
BYPASS_LONG_LINES_REASON: Bluetooth likes 120 lines

Change-Id: I512714dbca70afd8fb169de6a6f161974a46c802
parent fb8dd464
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1287,6 +1287,10 @@ void shim::legacy::Acl::OnLeConnectSuccess(
  RawAddress peer_rpa = RawAddress::kEmpty;  /* TODO enhanced */
  uint8_t peer_addr_type = 0;                /* TODO public */

  // Once an le connection has successfully been established
  // the device address is removed from the controller accept list.
  pimpl_->shadow_acceptlist_.Remove(address_with_type);

  TRY_POSTING_ON_MAIN(
      acl_interface_.connection.le.on_connected, legacy_address_with_type,
      handle, ToLegacyRole(connection_role), conn_interval, conn_latency,