OSDN Git Service

BLE Adv RPA is not updated on first timeout
authorSunny Kapdi <sunnyk@codeaurora.org>
Tue, 19 Sep 2017 01:14:13 +0000 (18:14 -0700)
committerSunny Kapdi <sunnyk@codeaurora.org>
Tue, 19 Sep 2017 17:46:46 +0000 (10:46 -0700)
BLE Advertisement RPA is getting updated with the
same RPA instead of the newly generated RPA on the
first timeout. Make sure to send the newly generated
RPA to the Controller.

CRs-Fixed: 2111232
Bug: 65857055
Change-Id: I4d8e95c26fe8e5944fdee32089b8fcaffa238367

stack/btm/btm_ble_multi_adv.cc

index 99b8cb5..afc8e8b 100644 (file)
@@ -243,7 +243,7 @@ class BleAdvertisingManagerImpl
 
           /* set it to controller */
           hci_interface->SetRandomAddress(
-              p_inst->inst_id, p_inst->own_address,
+              p_inst->inst_id, bda,
               Bind(
                   [](AdvertisingInstance* p_inst, RawAddress bda,
                      MultiAdvCb configuredCb, uint8_t status) {