We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bfdbcc7 commit 73b4bebCopy full SHA for 73b4beb
features/FEATURE_BLE/ble/generic/SecurityDb.h
@@ -617,6 +617,21 @@ class SecurityDb {
617
continue;
618
}
619
620
+ // Add the connection address
621
+ whitelist->addresses[whitelist->size].address = flags->peer_address.data();
622
+
623
+ if (flags->peer_address_is_public) {
624
+ whitelist->addresses[whitelist->size].type = peer_address_type_t::PUBLIC;
625
+ } else {
626
+ whitelist->addresses[whitelist->size].type = peer_address_type_t::RANDOM;
627
+ }
628
629
+ whitelist->size++;
630
+ if (whitelist->size == whitelist->capacity) {
631
+ break;
632
633
634
+ // Add the identity address
635
SecurityEntryIdentity_t* identity = read_in_entry_peer_identity(db_handle);
636
if (!identity) {
637
0 commit comments