OSDN Git Service

gd: Store the address when using resolving privacy policy
authorChris Manton <cmanton@google.com>
Sat, 31 Oct 2020 18:19:11 +0000 (11:19 -0700)
committerChris Manton <cmanton@google.com>
Wed, 4 Nov 2020 18:30:05 +0000 (10:30 -0800)
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

index 8e1c997..ad8d083 100644 (file)
@@ -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;