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:
parent
aeb3051aba
commit
cae60fb4a0
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue