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:
parent
d3dbf890bf
commit
c6345c6371
1 changed files with 2 additions and 0 deletions
|
|
@ -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"); */
|
||||
|
|
|
|||
Loading…
Reference in a new issue