Skip to content

Commit 179ad16

Browse files
2 parents cebc0f8 + c00ae29 commit 179ad16

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+6
-3
lines changed

features/FEATURE_BLE/source/generic/GenericSecurityManager.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -865,6 +865,8 @@ void GenericSecurityManager::on_pairing_request(
865865

866866
if (_pairing_authorisation_required) {
867867
eventHandler->pairingRequest(connection);
868+
} else {
869+
acceptPairingRequest(connection);
868870
}
869871
}
870872

features/FEATURE_BLE/targets/TARGET_CORDIO/source/CordioPalSecurityManager.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,9 @@ ble_error_t CordioSecurityManager::set_secure_connections_support(
9999
ble_error_t CordioSecurityManager::get_secure_connections_support(
100100
bool &enabled
101101
) {
102-
return BLE_ERROR_NOT_IMPLEMENTED;
102+
// FIXME: should depend of the controller
103+
enabled = false;
104+
return BLE_ERROR_NONE;
103105
}
104106

105107
////////////////////////////////////////////////////////////////////////////
@@ -271,8 +273,7 @@ ble_error_t CordioSecurityManager::set_display_passkey(passkey_num_t passkey)
271273

272274
ble_error_t CordioSecurityManager::set_io_capability(io_capability_t io_capability)
273275
{
274-
pSmpCfg->auth = io_capability.value();
275-
276+
pSmpCfg->ioCap = io_capability.value();
276277
return BLE_ERROR_NONE;
277278
}
278279

0 commit comments

Comments
 (0)