Fix HCI command buffer allocation failure, that can cause loss of Host Number of Completed Packets command. Fail by rejecting the HCI Host Buffer Size command if the required number of HCI command buffers are not allocated in the Controller implementation. When Controller to Host data flow control is supported in the Controller only build, ensure that BT_BUF_CMD_TX_COUNT is greater than or equal to (BT_BUF_RX_COUNT + Ncmd), where Ncmd is supported maximum Num_HCI_Command_Packets in the Controller implementation. Relates to commit81614307e9("Bluetooth: Add workaround for no command buffer available")'. Relates to commit297f4f481f("Bluetooth: Split HCI command & event buffers to two pools"). Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
19 lines
427 B
Plaintext
19 lines
427 B
Plaintext
CONFIG_CONSOLE=n
|
|
CONFIG_STDOUT_CONSOLE=n
|
|
CONFIG_UART_CONSOLE=n
|
|
CONFIG_GPIO=y
|
|
CONFIG_SERIAL=y
|
|
CONFIG_UART_INTERRUPT_DRIVEN=y
|
|
CONFIG_BT=y
|
|
CONFIG_BT_HCI_RAW=y
|
|
CONFIG_BT_HCI_RAW_H4=y
|
|
CONFIG_BT_HCI_RAW_H4_ENABLE=y
|
|
CONFIG_BT_BUF_ACL_RX_SIZE=255
|
|
CONFIG_BT_BUF_CMD_TX_SIZE=255
|
|
CONFIG_BT_BUF_EVT_DISCARDABLE_SIZE=255
|
|
CONFIG_BT_CTLR_ASSERT_HANDLER=y
|
|
CONFIG_BT_MAX_CONN=16
|
|
CONFIG_BT_CTLR_DTM_HCI=y
|
|
|
|
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=512
|