Skip to content

Commit 56af3cb

Browse files
committed
CBLE - Cordio PAL SM: Implement slave security request notification
1 parent da6ede3 commit 56af3cb

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -582,8 +582,14 @@ bool CordioSecurityManager::sm_handler(const wsfMsgHdr_t* msg) {
582582
return true;
583583
}
584584

585-
case DM_SEC_SLAVE_REQ_IND:
585+
case DM_SEC_SLAVE_REQ_IND: {
586+
dmSecPairIndEvt_t* evt = (dmSecPairIndEvt_t*) msg;
587+
handler->on_slave_security_request(
588+
/* connection */ evt->hdr.param,
589+
evt->auth
590+
);
586591
return true;
592+
}
587593

588594
case DM_SEC_CALC_OOB_IND:
589595
return true;

0 commit comments

Comments
 (0)