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

Commit 127696ec authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Use common address manager conventions"

parents 96a7ffd2 22bc9624
Loading
Loading
Loading
Loading
+5 −9
Original line number Diff line number Diff line
@@ -452,15 +452,6 @@ struct le_impl : public bluetooth::hci::LeAddressManagerCallback {
        address_with_type.ToConnectListAddressType(), address_with_type.GetAddress());
  }

  void clear_connect_list() {
    if (!address_manager_registered) {
      le_address_manager_->Register(this);
      address_manager_registered = true;
    }
    pause_connection = true;
    le_address_manager_->ClearConnectList();
  }

  void remove_device_from_connect_list(AddressWithType address_with_type) {
    direct_connections_.erase(address_with_type);
    register_with_address_manager();
@@ -468,6 +459,11 @@ struct le_impl : public bluetooth::hci::LeAddressManagerCallback {
        address_with_type.ToConnectListAddressType(), address_with_type.GetAddress());
  }

  void clear_connect_list() {
    register_with_address_manager();
    le_address_manager_->ClearConnectList();
  }

  void add_device_to_resolving_list(
      AddressWithType address_with_type,
      const std::array<uint8_t, 16>& peer_irk,