Bluetooth: controller: split: Fix tx_ack mfifo count

Fix the tx_ack mfifo count to accomodate both data and
control PDUs being acknowledged.

With out this fix, pending maximum number of data plus
control PDUs in LLL on supervision timeout asserted due to
tx_ack mfifo overflow.

Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
This commit is contained in:
Vinayak Kariappa Chettimada 2019-06-07 16:32:48 +02:00 committed by Carles Cufí
parent 23a6de5dd0
commit 3169556592
1 changed files with 4 additions and 3 deletions

View File

@ -102,7 +102,8 @@ static void ticker_start_conn_op_cb(u32_t status, void *param);
sizeof(struct pdu_data_llctrl))
static MFIFO_DEFINE(conn_tx, sizeof(struct lll_tx), CONFIG_BT_CTLR_TX_BUFFERS);
static MFIFO_DEFINE(conn_ack, sizeof(struct lll_tx), CONFIG_BT_CTLR_TX_BUFFERS);
static MFIFO_DEFINE(conn_ack, sizeof(struct lll_tx),
(CONFIG_BT_CTLR_TX_BUFFERS + CONN_TX_CTRL_BUFFERS));
static struct {
@ -1159,8 +1160,8 @@ void ull_conn_tx_demux(u8_t count)
break;
}
conn = ll_conn_get(lll_tx->handle);
if (conn->lll.handle == lll_tx->handle) {
conn = ll_connected_get(lll_tx->handle);
if (conn) {
struct node_tx *tx = lll_tx->node;
tx->next = NULL;