mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #8005 from paul-szczepanek-arm/fix-whitelist-gen
BLE: fix whitelist generation (set correct address type)pull/8231/head
commit
f0c6a66285
|
@ -603,7 +603,7 @@ public:
|
||||||
sizeof(BLEProtocol::AddressBytes_t)
|
sizeof(BLEProtocol::AddressBytes_t)
|
||||||
);
|
);
|
||||||
|
|
||||||
if (flags->peer_address_is_public) {
|
if (identity->identity_address_is_public) {
|
||||||
whitelist->addresses[whitelist->size].type = BLEProtocol::AddressType::PUBLIC;
|
whitelist->addresses[whitelist->size].type = BLEProtocol::AddressType::PUBLIC;
|
||||||
} else {
|
} else {
|
||||||
whitelist->addresses[whitelist->size].type = BLEProtocol::AddressType::RANDOM_STATIC;
|
whitelist->addresses[whitelist->size].type = BLEProtocol::AddressType::RANDOM_STATIC;
|
||||||
|
|
Loading…
Reference in New Issue