Skip to content

Commit 6833c79

Browse files
don't request encrypt when pending
1 parent 81cb1f9 commit 6833c79

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

features/FEATURE_BLE/source/generic/GenericSecurityManager.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -867,7 +867,7 @@ void GenericSecurityManager::on_slave_security_request(
867867

868868
if (pairing_required) {
869869
requestPairing(connection);
870-
} else {
870+
} else if (!cb->encryption_requested) {
871871
/* this will refresh keys if encryption is already present */
872872
enable_encryption(connection);
873873
}

0 commit comments

Comments
 (0)