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

Commit 5d6d21a6 authored by Myles Watson's avatar Myles Watson
Browse files

RootCanal: Use the resolved address type

Bug: 230123996
Test: gd/cert
Change-Id: I3f609fe5f248e214ec7fb2ae75f6dc1e886d3059
(cherry picked from commit 065d24d4)
Merged-In: I3f609fe5f248e214ec7fb2ae75f6dc1e886d3059
parent 8a1060f3
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -1584,9 +1584,10 @@ uint16_t LinkLayerController::HandleLeConnection(AddressWithType address,
    AddressType peer_address_type = address.GetAddressType();
    if (peer_resolved_address != AddressWithType()) {
      peer_resolvable_private_address = address.GetAddress();
      if (address.GetAddressType() == AddressType::PUBLIC_DEVICE_ADDRESS) {
      if (peer_resolved_address.GetAddressType() ==
          AddressType::PUBLIC_DEVICE_ADDRESS) {
        peer_address_type = AddressType::PUBLIC_IDENTITY_ADDRESS;
      } else if (address.GetAddressType() ==
      } else if (peer_resolved_address.GetAddressType() ==
                 AddressType::RANDOM_DEVICE_ADDRESS) {
        peer_address_type = AddressType::RANDOM_IDENTITY_ADDRESS;
      } else {