Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of nRF51822 by
Diff: btle/btle_security.cpp
- Revision:
- 152:0e74b7590ab2
- Parent:
- 150:44c40836c82f
- Child:
- 154:9d51b9dfc72e
diff -r e093294d98fb -r 0e74b7590ab2 btle/btle_security.cpp --- a/btle/btle_security.cpp Fri May 08 15:33:58 2015 +0100 +++ b/btle/btle_security.cpp Fri May 08 15:33:58 2015 +0100 @@ -146,9 +146,14 @@ dm_handler(dm_handle_t const *p_handle, dm_event_t const *p_event, ret_code_t event_result) { switch (p_event->event_id) { - case DM_EVT_SECURITY_SETUP: /* started */ - nRF51Gap::getInstance().processSecuritySetupStartedEvent(p_event->event_param.p_gap_param->conn_handle); + case DM_EVT_SECURITY_SETUP: /* started */ { + const ble_gap_sec_params_t *peerParams = &p_event->event_param.p_gap_param->params.sec_params_request.peer_params; + nRF51Gap::getInstance().processSecurityProcedureInitiatedEvent(p_event->event_param.p_gap_param->conn_handle, + peerParams->bond, + peerParams->mitm, + (Gap::SecurityIOCapabilities_t)peerParams->io_caps); break; + } case DM_EVT_SECURITY_SETUP_COMPLETE: nRF51Gap::getInstance().processSecuritySetupCompletedEvent(p_event->event_param.p_gap_param->conn_handle); break;