From 7e2264a06536cf5d8c3f3e45de0b919c00e73a88 Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Fri, 5 Feb 2016 13:46:08 +0200 Subject: [PATCH] drivers/nble: Increase rx buffer count With peripheral application there is at least 6 commands sent in a row which will lead to 6 responses which might cause the driver to run out of buffers so this increases it to 8 to align with HCI driver. Change-Id: I7ecbc2cfbaf754c35466c57124ff87d27766a07b Signed-off-by: Luiz Augusto von Dentz --- drivers/nble/uart.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/nble/uart.c b/drivers/nble/uart.c index 539cdc448a4..4944e35f5a2 100644 --- a/drivers/nble/uart.c +++ b/drivers/nble/uart.c @@ -32,14 +32,15 @@ #include "rpc.h" /* TODO: check size */ -#define NBLE_IPC_COUNT 2 -#define NBLE_BUF_SIZE 384 +#define NBLE_TX_BUF_COUNT 2 +#define NBLE_RX_BUF_COUNT 8 +#define NBLE_BUF_SIZE 384 static struct nano_fifo rx; -static NET_BUF_POOL(rx_pool, NBLE_IPC_COUNT, NBLE_BUF_SIZE, &rx, NULL, 0); +static NET_BUF_POOL(rx_pool, NBLE_RX_BUF_COUNT, NBLE_BUF_SIZE, &rx, NULL, 0); static struct nano_fifo tx; -static NET_BUF_POOL(tx_pool, NBLE_IPC_COUNT, NBLE_BUF_SIZE, &tx, NULL, 0); +static NET_BUF_POOL(tx_pool, NBLE_TX_BUF_COUNT, NBLE_BUF_SIZE, &tx, NULL, 0); static BT_STACK_NOINIT(rx_fiber_stack, 2048);