Bluetooth: controller: llcp: fix issue re. missing release of tx node

On disconnect with refactored LLCP, if data tx is paused,
possibly 'waiting' tx nodes would not get released.

Signed-off-by: Erik Brockhoff <erbr@oticon.com>
This commit is contained in:
Erik Brockhoff 2022-06-21 13:32:50 +02:00 committed by Carles Cufí
commit 8b912f1488

View file

@ -2567,6 +2567,8 @@ static void tx_ull_flush(struct ll_conn *conn)
#else /* CONFIG_BT_LL_SW_LLCP_LEGACY */
struct node_tx *tx;
ull_tx_q_resume_data(&conn->tx_q);
tx = tx_ull_dequeue(conn, NULL);
while (tx) {
memq_link_t *link;