zephyr/tests/bsim/bluetooth/host/misc
Vinayak Kariappa Chettimada d382fca6ff Bluetooth: Controller: Fix HCI command buffer allocation failure
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 commit 81614307e9 ("Bluetooth: Add workaround
for no command buffer available")'.

Relates to commit 297f4f481f ("Bluetooth: Split HCI
command & event buffers to two pools").

Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
2025-02-21 11:30:38 +00:00
..
acl_tx_frag Bluetooth: Host: More bsim refactoring 2025-02-12 09:40:07 +01:00
conn_stress Bluetooth: Host: bsim: Refactor common files 2025-01-17 13:41:50 +01:00
disable Bluetooth: Host: More bsim refactoring 2025-02-12 09:40:07 +01:00
disconnect Bluetooth: Controller: Fix HCI command buffer allocation failure 2025-02-21 11:30:38 +00:00
hfc Bluetooth: Controller: Fix HCI command buffer allocation failure 2025-02-21 11:30:38 +00:00
hfc_multilink Bluetooth: Controller: Fix HCI command buffer allocation failure 2025-02-21 11:30:38 +00:00
sample_test Bluetooth: Host: More bsim refactoring 2025-02-12 09:40:07 +01:00
unregister_conn_cb Bluetooth: Host: More bsim refactoring 2025-02-12 09:40:07 +01:00