bluetooth: increase HCI RX buffer size.

BLUETOOTH_MAX_FRAMELEN  buffer size is only for LE only mode.
then we need to increase HCI buffer size in BR/EDR and LE mode.

Signed-off-by: chengkai <chengkai@xiaomi.com>
This commit is contained in:
chengkai 2023-12-25 17:46:02 +08:00 committed by Xiang Xiao
parent aeb3051aba
commit cae60fb4a0
2 changed files with 7 additions and 1 deletions

View File

@ -51,6 +51,12 @@ config BLUETOOTH_UART_DUMP
---help---
Dump the full content of all outgoing and incoming messages.
config BLUETOOTH_UART_RXBUFSIZE
int "Bluetooth UART RX Buffer size"
default 2048
---help---
Bluetooth UART RX Buffer size. Default: 2048
endif # BLUETOOTH_UART
config BLUETOOTH_BRIDGE

View File

@ -102,7 +102,7 @@ static ssize_t btuart_read(FAR struct btuart_upperhalf_s *upper,
static void btuart_rxwork(FAR void *arg)
{
FAR struct btuart_upperhalf_s *upper;
uint8_t data[BLUETOOTH_MAX_FRAMELEN];
uint8_t data[CONFIG_BLUETOOTH_UART_RXBUFSIZE];
enum bt_buf_type_e type;
unsigned int hdrlen;
unsigned int pktlen;