File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
connectivity/FEATURE_BLE/source/generic Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -185,6 +185,11 @@ class SecurityDb {
185
185
// Note: keys should never be null as a matching entry has been retrieved
186
186
SecurityEntryKeys_t* keys = read_in_entry_local_keys (correct_handle);
187
187
MBED_ASSERT (keys);
188
+
189
+ /* set flags connected */
190
+ SecurityDistributionFlags_t* flags = get_distribution_flags (correct_handle);
191
+ flags->connected = true ;
192
+
188
193
close_entry (*db_handle, false );
189
194
*db_handle = correct_handle;
190
195
cb (*db_handle, keys);
@@ -494,6 +499,7 @@ class SecurityDb {
494
499
) {
495
500
entry_handle_t db_handle = find_entry_by_peer_address (peer_address_type, peer_address);
496
501
if (db_handle) {
502
+ ((SecurityDistributionFlags_t*)db_handle)->connected = true ;
497
503
return db_handle;
498
504
}
499
505
@@ -507,6 +513,7 @@ class SecurityDb {
507
513
* by identity address */
508
514
flags->peer_address = peer_address;
509
515
flags->peer_address_is_public = peer_address_public;
516
+ flags->connected = true ;
510
517
return flags;
511
518
}
512
519
You can’t perform that action at this time.
0 commit comments