diff --git a/include/bluetooth/buf.h b/include/bluetooth/buf.h index f92eb990749..54c9f830431 100644 --- a/include/bluetooth/buf.h +++ b/include/bluetooth/buf.h @@ -42,10 +42,11 @@ /* Type of data contained in this buffer */ enum bt_buf_type { - BT_CMD, /* HCI command */ - BT_EVT, /* HCI event */ - BT_ACL_OUT, /* Outgoing ACL data */ - BT_ACL_IN, /* Incoming ACL data */ + BT_CMD, /* HCI command */ + BT_EVT, /* HCI event */ + BT_ACL_OUT, /* Outgoing ACL data */ + BT_ACL_IN, /* Incoming ACL data */ + BT_DUMMY = BT_CMD, /* Only used for waking up fibers */ }; /* HCI command specific info */ diff --git a/net/bluetooth/conn.c b/net/bluetooth/conn.c index f2b99a0375d..b2fb6d7799b 100644 --- a/net/bluetooth/conn.c +++ b/net/bluetooth/conn.c @@ -257,8 +257,8 @@ void bt_conn_del(struct bt_conn *conn) conn->state = BT_CONN_DISCONNECTED; /* Send dummy buffers to wake up and kill the fibers */ - nano_fifo_put(&conn->tx_queue, bt_buf_get(BT_ACL_OUT, 0)); - nano_fifo_put(&conn->rx_queue, bt_buf_get(BT_ACL_IN, 0)); + nano_fifo_put(&conn->tx_queue, bt_buf_get(BT_DUMMY, 0)); + nano_fifo_put(&conn->rx_queue, bt_buf_get(BT_DUMMY, 0)); bt_conn_put(conn); }