Skip to content

Commit cae60fb

Browse files
chengkai15xiaoxiang781216
authored andcommitted
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 <[email protected]>
1 parent aeb3051 commit cae60fb

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

drivers/wireless/bluetooth/Kconfig

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,12 @@ config BLUETOOTH_UART_DUMP
5151
---help---
5252
Dump the full content of all outgoing and incoming messages.
5353

54+
config BLUETOOTH_UART_RXBUFSIZE
55+
int "Bluetooth UART RX Buffer size"
56+
default 2048
57+
---help---
58+
Bluetooth UART RX Buffer size. Default: 2048
59+
5460
endif # BLUETOOTH_UART
5561

5662
config BLUETOOTH_BRIDGE

drivers/wireless/bluetooth/bt_uart.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ static ssize_t btuart_read(FAR struct btuart_upperhalf_s *upper,
102102
static void btuart_rxwork(FAR void *arg)
103103
{
104104
FAR struct btuart_upperhalf_s *upper;
105-
uint8_t data[BLUETOOTH_MAX_FRAMELEN];
105+
uint8_t data[CONFIG_BLUETOOTH_UART_RXBUFSIZE];
106106
enum bt_buf_type_e type;
107107
unsigned int hdrlen;
108108
unsigned int pktlen;

0 commit comments

Comments
 (0)