Skip to content

Commit c6345c6

Browse files
jori-nordicaescolar
authored andcommitted
Bluetooth: l2cap: service as much TX channels as possible
Similar to ISO connections, ACL connections are not serviced as fast as possible. Change this, and try to send as much as we have resources for. Signed-off-by: Jonathan Rico <[email protected]>
1 parent d3dbf89 commit c6345c6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

subsys/bluetooth/host/l2cap.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -873,6 +873,7 @@ struct net_buf *l2cap_data_pull(struct bt_conn *conn,
873873

874874
if (!lechan) {
875875
LOG_DBG("no channel conn %p", conn);
876+
bt_tx_irq_raise();
876877
return NULL;
877878
}
878879

@@ -885,6 +886,7 @@ struct net_buf *l2cap_data_pull(struct bt_conn *conn,
885886
struct net_buf *pdu = k_fifo_peek_head(&lechan->tx_queue);
886887

887888
if (!pdu) {
889+
bt_tx_irq_raise();
888890
return NULL;
889891
}
890892
/* __ASSERT(pdu, "signaled ready but no PDUs in the TX queue"); */

0 commit comments

Comments
 (0)