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 <jonathan.rico@nordicsemi.no>
This commit is contained in:
Jonathan Rico 2024-06-17 11:52:38 +02:00 committed by Alberto Escolar
parent d3dbf890bf
commit c6345c6371

View file

@ -873,6 +873,7 @@ struct net_buf *l2cap_data_pull(struct bt_conn *conn,
if (!lechan) {
LOG_DBG("no channel conn %p", conn);
bt_tx_irq_raise();
return NULL;
}
@ -885,6 +886,7 @@ struct net_buf *l2cap_data_pull(struct bt_conn *conn,
struct net_buf *pdu = k_fifo_peek_head(&lechan->tx_queue);
if (!pdu) {
bt_tx_irq_raise();
return NULL;
}
/* __ASSERT(pdu, "signaled ready but no PDUs in the TX queue"); */