From 8b912f1488cc5c955e979b5b85a77a8a7f9286b4 Mon Sep 17 00:00:00 2001 From: Erik Brockhoff Date: Tue, 21 Jun 2022 13:32:50 +0200 Subject: [PATCH] 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 --- subsys/bluetooth/controller/ll_sw/ull_conn.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/subsys/bluetooth/controller/ll_sw/ull_conn.c b/subsys/bluetooth/controller/ll_sw/ull_conn.c index c64717edb68..c5005c6a816 100644 --- a/subsys/bluetooth/controller/ll_sw/ull_conn.c +++ b/subsys/bluetooth/controller/ll_sw/ull_conn.c @@ -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;