From a2c9781682452c7ed256bdac7c01a85f69716cfc Mon Sep 17 00:00:00 2001 From: paul-szczepanek-arm <33840200+paul-szczepanek-arm@users.noreply.github.com> Date: Wed, 5 Sep 2018 16:46:01 +0100 Subject: [PATCH] fix whitelist generation (set correct address type) --- features/FEATURE_BLE/ble/generic/SecurityDb.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features/FEATURE_BLE/ble/generic/SecurityDb.h b/features/FEATURE_BLE/ble/generic/SecurityDb.h index 8fa9e96d18..a5577f1929 100644 --- a/features/FEATURE_BLE/ble/generic/SecurityDb.h +++ b/features/FEATURE_BLE/ble/generic/SecurityDb.h @@ -603,7 +603,7 @@ public: sizeof(BLEProtocol::AddressBytes_t) ); - if (flags->peer_address_is_public) { + if (identity->identity_address_is_public) { whitelist->addresses[whitelist->size].type = BLEProtocol::AddressType::PUBLIC; } else { whitelist->addresses[whitelist->size].type = BLEProtocol::AddressType::RANDOM_STATIC;