zephyr/tests/bluetooth
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
..
addr Bluetooth: Controller: Replace BT_CTLR with HAS_BT_CTLR 2024-12-03 10:16:44 +01:00
adv
at lib: net_buf: rename header file from zephyr/net/buf.h to zephyr/net_buf.h 2024-09-07 11:19:05 -05:00
audio Bluetooth: BAP: Remove GATT_CACHING req for unicast server 2025-02-14 19:15:57 +00:00
bluetooth Bluetooth: Controller: Replace BT_CTLR with HAS_BT_CTLR 2024-12-03 10:16:44 +01:00
bt_crypto test: Bluetooth: crypto: increase stack size for all the boards 2025-01-27 17:10:21 +01:00
bt_crypto_ccm Bluetooth: Controller: Replace BT_CTLR with HAS_BT_CTLR 2024-12-03 10:16:44 +01:00
buf tests: bluetooth: buf: Test the freed buf callback 2024-12-10 11:09:36 +01:00
common/testlib Bluetooth: testlib: Add addr string macro 2025-02-12 09:40:07 +01:00
controller bluetooth: controller: fix spelling of "exactly" 2025-02-19 18:51:13 +01:00
df Bluetooth: Rename BLE to Bluetooth (LE) where applicable 2025-02-12 12:24:18 +01:00
gap Bluetooth: Host: Add conversion macros from ms to various units 2024-11-16 14:06:03 -05:00
gatt Bluetooth: fix GATT service reregistering 2024-12-04 12:10:22 +01:00
hci Bluetooth: Controller: Replace BT_CTLR with HAS_BT_CTLR 2024-12-03 10:16:44 +01:00
hci_codecs_info Bluetooth: Controller: Fix HCI command buffer allocation failure 2025-02-21 11:30:38 +00:00
hci_prop_evt Bluetooth: Controller: Replace BT_CTLR with HAS_BT_CTLR 2024-12-03 10:16:44 +01:00
hci_uart_async drivers: bluetooth: hci: Place API into iterable section 2024-11-29 14:49:53 +01:00
host Bluetooth: Host: Add type check for bt_conn API 2025-02-11 22:04:51 +01:00
host_config_variants bluetooth: smp: Fix build warnings for central with OOB legacy only 2024-12-12 11:05:38 +01:00
host_long_adv_recv Bluetooth: Controller: Replace BT_CTLR with HAS_BT_CTLR 2024-12-03 10:16:44 +01:00
init Bluetooth: Host: Add support for Advertising Coding Selection 2025-02-08 10:09:41 +01:00
l2cap Bluetooth: Controller: Replace BT_CTLR with HAS_BT_CTLR 2024-12-03 10:16:44 +01:00
mesh tests: bt: add Mbed TLS headers to the build 2024-11-27 16:40:47 -05:00
mesh_shell Bluetooth: Mesh: use secure storage in ble mesh 2025-01-14 13:23:47 +01:00
qualification tests: Bluetooth: Update PTS ICS with new spec versions 2024-12-05 16:13:55 -05:00
shell Bluetooth: BAP: Remove GATT_CACHING req for unicast server 2025-02-14 19:15:57 +00:00
smp Bluetooth: Controller: Replace BT_CTLR with HAS_BT_CTLR 2024-12-03 10:16:44 +01:00
tester bluetooth: tester: btp: adds testcase tester legacy adv 2025-02-18 18:37:59 +01:00
uuid Bluetooth: Controller: Replace BT_CTLR with HAS_BT_CTLR 2024-12-03 10:16:44 +01:00