Skip to content

Commit 9fefb7d

Browse files
polldofacchinm
authored andcommitted
Cordio Add sendCmplt Callback for updating NumCmplPckts on disconnection
1 parent c3107bb commit 9fefb7d

File tree

1 file changed

+4
-2
lines changed
  • features/FEATURE_BLE/targets/TARGET_CORDIO_LL/stack/controller/sources/ble/lctr

1 file changed

+4
-2
lines changed

features/FEATURE_BLE/targets/TARGET_CORDIO_LL/stack/controller/sources/ble/lctr/lctr_main_conn.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -514,14 +514,16 @@ void lctrFreeConnCtx(lctrConnCtx_t *pCtx)
514514
WsfMsgFree(pBuf);
515515
}
516516

517+
uint16_t handle = LCTR_GET_CONN_HANDLE(pCtx);
518+
519+
lmgrPersistCb.sendCompCback(handle, numTxBufs);
520+
517521
/* Cleanup timers. */
518522
WsfTimerStop(&pCtx->tmrSupTimeout);
519523
WsfTimerStop(&pCtx->tmrProcRsp);
520524
WsfTimerStop(&pCtx->tmrPingTimeout);
521525
WsfTimerStop(&pCtx->tmrAuthTimeout);
522526

523-
uint16_t handle = LCTR_GET_CONN_HANDLE(pCtx);
524-
525527
/* VS cleanup. */
526528
if (pLctrVsHdlrs && pLctrVsHdlrs->connCleanup)
527529
{

0 commit comments

Comments
 (0)