From 29c1787277e52d80e059da909f8fb8d48c6c8e4f Mon Sep 17 00:00:00 2001 From: Chris Manton Date: Sat, 31 Oct 2020 11:19:11 -0700 Subject: [PATCH] gd: Store the address when using resolving privacy policy This address may change with updated, but seed the initial address properly. Bug: 171568335 Test: CtsVerifier Test: gd/cert/run --host Test: atest --host bluetooth_test_gd Tag: #refactor Change-Id: I85dab865ec9c7aa083cab3d6594d6eca4df925ac --- gd/hci/le_address_manager.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/gd/hci/le_address_manager.cc b/gd/hci/le_address_manager.cc index 8e1c99770..ad8d08341 100644 --- a/gd/hci/le_address_manager.cc +++ b/gd/hci/le_address_manager.cc @@ -61,6 +61,7 @@ void LeAddressManager::SetPrivacyPolicyForInitiatorAddress( } break; case AddressPolicy::USE_NON_RESOLVABLE_ADDRESS: case AddressPolicy::USE_RESOLVABLE_ADDRESS: + le_address_ = fixed_address; rotation_irk_ = rotation_irk; minimum_rotation_time_ = minimum_rotation_time; maximum_rotation_time_ = maximum_rotation_time; -- 2.11.0