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 e706b41 commit 68f2561Copy full SHA for 68f2561
features/FEATURE_BLE/source/generic/GenericSecurityManager.cpp
@@ -900,14 +900,10 @@ void GenericSecurityManager::on_pairing_timed_out(connection_handle_t connection
900
void GenericSecurityManager::on_pairing_completed(connection_handle_t connection) {
901
ControlBlock_t *cb = get_control_block(connection);
902
if (cb) {
903
- if (cb->encryption_requested) {
904
- enable_encryption(connection);
905
- }
+ // set the distribution flags in the db
+ _db.set_distribution_flags(cb->db_entry, *cb);
906
}
907
908
- // set the distribution flags in the db
909
- _db.set_distribution_flags(cb->db_entry, *cb);
910
-
911
eventHandler->pairingResult(
912
connection,
913
SecurityManager::SEC_STATUS_SUCCESS
0 commit comments