Skip to content
Snippets Groups Projects
Commit 43dc617d authored by Tobias Schneider's avatar Tobias Schneider
Browse files

hack(ble): Turn of encryption after closing a connection

parent 50fd11aa
No related branches found
No related tags found
No related merge requests found
......@@ -217,6 +217,15 @@ void lctrConnStatelessEventHandler(lctrConnCtx_t *pCtx, uint8_t event)
{
case LCTR_CONN_TERMINATED:
LL_TRACE_INFO2("lctrConnStatelessEventHandler: handle=%u, state=%u, event=TERMINATED", LCTR_GET_CONN_HANDLE(pCtx), pCtx->state);
/* card10 HACK:
* After an encrypted connection is closed, the stack does not instruct the radio to turn off encryption again.
* There is no direct interface to this either. lctrCalcSessionKey() does transfer the flag though. */
lctrDisableTxDataEnc(pCtx);
lctrDisableRxDataEnc(pCtx);
lctrCalcSessionKey(pCtx);
/*END card10 HACK */
lctrNotifyHostDisconnectInd(pCtx);
lctrFreeConnCtx(pCtx);
break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment