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
Revision 148:a67b1b776aab, committed 2015-05-08
- Comitter:
- rgrover1
- Date:
- Fri May 08 15:33:57 2015 +0100
- Parent:
- 147:457a129dfa5e
- Child:
- 149:f6a9caa8c565
- Commit message:
- Synchronized with git rev 5dafff52
Author: Rohit Grover
fixed implementation for getLinkSecurity().
needed filling in of application instance.
Changed in this revision
| btle/btle_security.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/btle/btle_security.cpp Fri May 08 15:33:57 2015 +0100
+++ b/btle/btle_security.cpp Fri May 08 15:33:57 2015 +0100
@@ -99,9 +99,10 @@
btle_getLinkSecurity(Gap::Handle_t connectionHandle, Gap::LinkSecurityStatus_t *securityStatusP)
{
ret_code_t rc;
- dm_handle_t dmHandle;
+ dm_handle_t dmHandle = {
+ .appl_id = applicationInstance,
+ };
if ((rc = dm_handle_get(connectionHandle, &dmHandle)) != NRF_SUCCESS) {
- printf("dm_handle_get failed with %u\r\n", rc);
if (rc == NRF_ERROR_NOT_FOUND) {
return BLE_ERROR_INVALID_PARAM;
} else {
@@ -110,7 +111,6 @@
}
if ((rc = dm_security_status_req(&dmHandle, reinterpret_cast<dm_security_status_t *>(securityStatusP))) != NRF_SUCCESS) {
- printf("security status request failed\r\n");
switch (rc) {
case NRF_ERROR_INVALID_STATE:
return BLE_ERROR_INVALID_STATE;
