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 {
185185 // Note: keys should never be null as a matching entry has been retrieved
186186 SecurityEntryKeys_t* keys = read_in_entry_local_keys (correct_handle);
187187 MBED_ASSERT (keys);
188+
189+ /* set flags connected */
190+ SecurityDistributionFlags_t* flags = get_distribution_flags (correct_handle);
191+ flags->connected = true ;
192+
188193 close_entry (*db_handle, false );
189194 *db_handle = correct_handle;
190195 cb (*db_handle, keys);
@@ -494,6 +499,7 @@ class SecurityDb {
494499 ) {
495500 entry_handle_t db_handle = find_entry_by_peer_address (peer_address_type, peer_address);
496501 if (db_handle) {
502+ ((SecurityDistributionFlags_t*)db_handle)->connected = true ;
497503 return db_handle;
498504 }
499505
@@ -507,6 +513,7 @@ class SecurityDb {
507513 * by identity address */
508514 flags->peer_address = peer_address;
509515 flags->peer_address_is_public = peer_address_public;
516+ flags->connected = true ;
510517 return flags;
511518 }
512519
You can’t perform that action at this time.
0 commit comments