zephyr/samples/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
..
bap_broadcast_assistant Bluetooth: Host: Remove HCI ECC emulation 2025-01-23 10:14:46 +01:00
bap_broadcast_sink samples: Bluetooth: Broadcast sink: Refactor audio RX path 2025-02-14 17:03:51 +01:00
bap_broadcast_source samples: Bluetooth: Audio: Spring cleanup for audio header files 2025-02-04 12:03:04 +01:00
bap_unicast_client Bluetooth: Host: Remove HCI ECC emulation 2025-01-23 10:14:46 +01:00
bap_unicast_server Bluetooth: BAP: Remove GATT_CACHING req for unicast server 2025-02-14 19:15:57 +00:00
beacon tests/samples: remove ENTROPY_GENERATOR from BT related tests/samples 2024-12-19 17:53:37 +01:00
broadcaster
broadcaster_multiple samples: Bluetooth: broadcaster_multiple: Refactor for reuse 2024-10-27 20:26:35 +00:00
bthome_sensor_template
cap_acceptor samples: Bluetooth: CAP: Add missing k_sem_init 2025-02-15 07:23:28 +01:00
cap_initiator samples: Bluetooth: Audio: Spring cleanup for audio header files 2025-02-04 12:03:04 +01:00
ccp_call_control_client Bluetooth: CCP: Initial CCP Client implemenation 2025-01-28 09:46:39 +01:00
ccp_call_control_server Bluetooth: Host: Remove HCI ECC emulation 2025-01-23 10:14:46 +01:00
central boards: silabs: Add xG29-RB4412A radio board 2025-01-20 16:34:50 +01:00
central_gatt_write samples: Bluetooth: GATT write commands with connection PHY Update 2025-02-05 08:16:30 +01:00
central_hr Bluetooth: Controller: Fix HCI command buffer allocation failure 2025-02-21 11:30:38 +00:00
central_ht tests/samples: remove ENTROPY_GENERATOR from BT related tests/samples 2024-12-19 17:53:37 +01:00
central_multilink samples: Bluetooth: Rename BLE to Bluetooth (LE) where applicable 2025-02-12 12:24:18 +01:00
central_otc samples: add missing CONFIG_GPIO=y 2024-12-18 18:15:15 +01:00
central_past samples: fix zephyr/drivers/gpio.h usage 2024-12-18 18:15:15 +01:00
channel_sounding bluetooth: host: simplify enums for SNR control 2024-12-05 12:30:09 +01:00
direct_adv Bluetooth: Deprecate adv auto-resume 2024-10-08 16:57:01 +02:00
direction_finding_central Bluetooth: Controller: Replace BT_CTLR with HAS_BT_CTLR 2024-12-03 10:16:44 +01:00
direction_finding_connectionless_rx Bluetooth: Controller: Replace BT_CTLR with HAS_BT_CTLR 2024-12-03 10:16:44 +01:00
direction_finding_connectionless_tx Bluetooth: Controller: Replace BT_CTLR with HAS_BT_CTLR 2024-12-03 10:16:44 +01:00
direction_finding_peripheral Bluetooth: Controller: Replace BT_CTLR with HAS_BT_CTLR 2024-12-03 10:16:44 +01:00
eddystone Bluetooth: Deprecate adv auto-resume 2024-10-08 16:57:01 +02:00
encrypted_advertising Bluetooth: Deprecate adv auto-resume 2024-10-08 16:57:01 +02:00
extended_adv
handsfree doc: nxp: nw612: clarify documentation 2025-01-21 15:14:05 +01:00
handsfree_ag Bluetooth: HFP_AG: Update SDP discovery 2024-12-06 12:14:29 +01:00
hap_ha Bluetooth: BAP: Remove GATT_CACHING req for unicast server 2025-02-14 19:15:57 +00:00
hci_ipc Bluetooth: Controller: Fix HCI command buffer allocation failure 2025-02-21 11:30:38 +00:00
hci_pwr_ctrl samples: bluetooth: Add build asserts for VS-using samples 2024-11-27 10:30:32 +01:00
hci_spi Bluetooth: Controller: Fix HCI command buffer allocation failure 2025-02-21 11:30:38 +00:00
hci_uart Bluetooth: Controller: Fix HCI command buffer allocation failure 2025-02-21 11:30:38 +00:00
hci_uart_3wire Bluetooth: Controller: Fix HCI command buffer allocation failure 2025-02-21 11:30:38 +00:00
hci_uart_async samples: Bluetooth: Rename BLE to Bluetooth (LE) where applicable 2025-02-12 12:24:18 +01:00
hci_usb Bluetooth: Controller: Fix HCI command buffer allocation failure 2025-02-21 11:30:38 +00:00
hci_vs_scan_req samples: bluetooth: Add build asserts for VS-using samples 2024-11-27 10:30:32 +01:00
ibeacon
iso_broadcast samples: Bluetooth: ISO: Update conn and adv intervals 2024-11-25 10:07:30 +01:00
iso_broadcast_benchmark samples: Bluetooth: Rename BLE to Bluetooth (LE) where applicable 2025-02-12 12:24:18 +01:00
iso_central samples: Bluetooth: ISO: Update conn and adv intervals 2024-11-25 10:07:30 +01:00
iso_connected_benchmark samples: Bluetooth: Rename BLE to Bluetooth (LE) where applicable 2025-02-12 12:24:18 +01:00
iso_peripheral Bluetooth: Audio: Update SCAN_DELEGATOR dependency to GATT_DYNAMIC_DB 2024-10-23 16:53:37 +02:00
iso_receive samples: bluetooth: iso_receive: add option to control led0 2024-12-18 18:15:15 +01:00
mesh Bluetooth: Controller: Fix HCI command buffer allocation failure 2025-02-21 11:30:38 +00:00
mesh_demo Bluetooth: Mesh: use secure storage in ble mesh 2025-01-14 13:23:47 +01:00
mesh_provisioner Bluetooth: Mesh: use secure storage in ble mesh 2025-01-14 13:23:47 +01:00
mtu_update Bluetooth: Deprecate adv auto-resume 2024-10-08 16:57:01 +02:00
observer
pbp_public_broadcast_sink Bluetooth: BAP: Depend on BT_PER_ADV_SYNC instead of select 2024-11-21 09:19:47 +01:00
pbp_public_broadcast_source samples: Bluetooth: Audio: Spring cleanup for audio header files 2025-02-04 12:03:04 +01:00
periodic_adv
periodic_adv_conn samples: Bluetooth: Rename BLE to Bluetooth (LE) where applicable 2025-02-12 12:24:18 +01:00
periodic_adv_rsp
periodic_sync samples: bluetooth: periodic_sync: add option to control led0 2024-12-18 18:15:15 +01:00
periodic_sync_conn samples: Bluetooth: Rename BLE to Bluetooth (LE) where applicable 2025-02-12 12:24:18 +01:00
periodic_sync_rsp Bluetooth: Deprecate adv auto-resume 2024-10-08 16:57:01 +02:00
peripheral samples: Bluetooth: Rename BLE to Bluetooth (LE) where applicable 2025-02-12 12:24:18 +01:00
peripheral_accept_list samples: Bluetooth: Rename BLE to Bluetooth (LE) where applicable 2025-02-12 12:24:18 +01:00
peripheral_csc tests/samples: remove ENTROPY_GENERATOR from BT related tests/samples 2024-12-19 17:53:37 +01:00
peripheral_dis bluetooth: dis: add Kconfig for disabling optional characteristics 2025-02-13 16:46:12 +01:00
peripheral_esp bt: use PSA for HCI ECC and rename BT_TINYCRYPT_ECC 2024-11-27 16:40:47 -05:00
peripheral_gatt_write Bluetooth: Deprecate adv auto-resume 2024-10-08 16:57:01 +02:00
peripheral_hids Bluetooth: Deprecate adv auto-resume 2024-10-08 16:57:01 +02:00
peripheral_hr Bluetooth: Controller: Fix HCI command buffer allocation failure 2025-02-21 11:30:38 +00:00
peripheral_ht boards: nxp: add RT1060 EVKC support 2025-01-21 19:27:39 +01:00
peripheral_identity samples: Bluetooth: Update central multilink and peripheral identity 2024-12-17 15:22:18 +01:00
peripheral_nus samples: Bluetooth: Improve printing in NUS sample 2025-02-06 17:49:27 +01:00
peripheral_ots Bluetooth: Deprecate adv auto-resume 2024-10-08 16:57:01 +02:00
peripheral_past samples: fix zephyr/drivers/gpio.h usage 2024-12-18 18:15:15 +01:00
peripheral_sc_only samples: bluetooth: peripheral_sc_only: Fix restarting advertising 2025-01-27 13:26:53 +01:00
scan_adv samples: Bluetooth: Rename BLE to Bluetooth (LE) where applicable 2025-02-12 12:24:18 +01:00
st_ble_sensor samples: Bluetooth: Rename BLE to Bluetooth (LE) where applicable 2025-02-12 12:24:18 +01:00
tmap_bmr Bluetooth: PACS: Remove BAP infix for pacs_register_param 2025-02-12 09:41:49 +01:00
tmap_bms samples: Bluetooth: Audio: Spring cleanup for audio header files 2025-02-04 12:03:04 +01:00
tmap_central samples: Bluetooth: Audio: Spring cleanup for audio header files 2025-02-04 12:03:04 +01:00
tmap_peripheral Bluetooth: BAP: Remove GATT_CACHING req for unicast server 2025-02-14 19:15:57 +00:00
bluetooth.rst