Bluetooth: Add debug logs to connection data path
Add debug logs to the rx/tx fibers so issues relating to them can be more easily debugged. Change-Id: Ie02d3e760772a3e47ff495c47d83b23744202941 Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
This commit is contained in:
parent
24a0e0eeb5
commit
7f9aeeb2e8
1 changed files with 4 additions and 0 deletions
|
@ -205,6 +205,7 @@ static void conn_rx_fiber(int arg1, int arg2)
|
|||
BT_DBG("Started for handle %u\n", conn->handle);
|
||||
|
||||
while (conn->state == BT_CONN_CONNECTED) {
|
||||
BT_DBG("calling fifo_get_wait\n");
|
||||
buf = nano_fifo_get_wait(&conn->rx_queue);
|
||||
|
||||
/* check for disconnection */
|
||||
|
@ -213,6 +214,7 @@ static void conn_rx_fiber(int arg1, int arg2)
|
|||
break;
|
||||
}
|
||||
|
||||
BT_DBG("passing buf %p len %u to L2CAP\n", buf, buf->len);
|
||||
bt_l2cap_recv(conn, buf);
|
||||
}
|
||||
|
||||
|
@ -239,6 +241,7 @@ static void conn_tx_fiber(int arg1, int arg2)
|
|||
|
||||
while (conn->state == BT_CONN_CONNECTED) {
|
||||
/* Wait until the controller can accept ACL packets */
|
||||
BT_DBG("calling sem_get_wait\n");
|
||||
nano_fiber_sem_take_wait(&dev->le_pkts_sem);
|
||||
|
||||
/* check for disconnection */
|
||||
|
@ -255,6 +258,7 @@ static void conn_tx_fiber(int arg1, int arg2)
|
|||
break;
|
||||
}
|
||||
|
||||
BT_DBG("passing buf %p len %u to driver\n", buf, buf->len);
|
||||
dev->drv->send(buf);
|
||||
bt_buf_put(buf);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue