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

Commit 78f084f0 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Set default Address Resolution list size"

parents 1fb84a7a 694131c1
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -174,6 +174,8 @@ class ShadowAddressResolutionList {
           static_cast<size_t>(max_address_resolution_size_);
  }

  size_t Size() const { return address_resolution_set_.size(); }

  void Clear() { address_resolution_set_.clear(); }

 private:
@@ -925,7 +927,8 @@ struct shim::legacy::Acl::impl {
                              const std::array<uint8_t, 16>& peer_irk,
                              const std::array<uint8_t, 16>& local_irk) {
    if (shadow_address_resolution_list_.IsFull()) {
      LOG_WARN("Le Address Resolution list is full");
      LOG_WARN("Le Address Resolution list is full size:%zu",
               shadow_address_resolution_list_.Size());
      return;
    }
    // TODO This should really be added upon successful completion
+3 −0
Original line number Diff line number Diff line
@@ -203,6 +203,9 @@ void BTM_reset_complete() {
    /* set the default random private address timeout */
    btsnd_hcic_ble_set_rand_priv_addr_timeout(
        btm_get_next_private_addrress_interval_ms() / 1000);
  } else {
    LOG_INFO(
        "Le Address Resolving list disabled due to lack of controller support");
  }

  if (controller->supports_ble()) {