Bluetooth: Controller: llcp: Missing llcp ctx release when disconnect

If there were local LLCP pending and connection lost happened there
were no release of allocated control procedure context.
It caused to exhaustion of available procedures.

Signed-off-by: Piotr Pryga <piotr.pryga@nordicsemi.no>
This commit is contained in:
Piotr Pryga 2022-01-05 11:16:34 +01:00 committed by Carles Cufí
commit bbf19b24be

View file

@ -2303,6 +2303,7 @@ static void conn_cleanup_finalize(struct ll_conn *conn)
} }
#else /* CONFIG_BT_LL_SW_LLCP_LEGACY */ #else /* CONFIG_BT_LL_SW_LLCP_LEGACY */
ARG_UNUSED(rx); ARG_UNUSED(rx);
ull_cp_state_set(conn, ULL_CP_DISCONNECTED);
#endif /* CONFIG_BT_LL_SW_LLCP_LEGACY */ #endif /* CONFIG_BT_LL_SW_LLCP_LEGACY */
/* flush demux-ed Tx buffer still in ULL context */ /* flush demux-ed Tx buffer still in ULL context */