Skip to content

Commit f0c6a66

Browse files
authored
Merge pull request #8005 from paul-szczepanek-arm/fix-whitelist-gen
BLE: fix whitelist generation (set correct address type)
2 parents 9d78650 + a2c9781 commit f0c6a66

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

features/FEATURE_BLE/ble/generic/SecurityDb.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -603,7 +603,7 @@ class SecurityDb {
603603
sizeof(BLEProtocol::AddressBytes_t)
604604
);
605605

606-
if (flags->peer_address_is_public) {
606+
if (identity->identity_address_is_public) {
607607
whitelist->addresses[whitelist->size].type = BLEProtocol::AddressType::PUBLIC;
608608
} else {
609609
whitelist->addresses[whitelist->size].type = BLEProtocol::AddressType::RANDOM_STATIC;

0 commit comments

Comments
 (0)