Skip to content

Commit

Permalink
RootCanal: Use the resolved address type
Browse files Browse the repository at this point in the history
Bug: 230123996
Test: gd/cert
Change-Id: I3f609fe5f248e214ec7fb2ae75f6dc1e886d3059
(cherry picked from commit 065d24d44b48f3808f1f40a8b8f41c6d9c1ff5e9)
Merged-In: I3f609fe5f248e214ec7fb2ae75f6dc1e886d3059
  • Loading branch information
myles-android committed May 20, 2022
1 parent 8a1060f commit 5d6d21a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tools/rootcanal/model/controller/link_layer_controller.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 5d6d21a

Please sign in to comment.