zephyr/subsys/bluetooth/host
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
..
classic Bluetooth: AVDTP: Fix memory leak issue 2025-02-18 13:30:53 +01:00
shell Bluetooth: Shell: fix assert when print address. 2025-02-20 11:47:39 +01:00
addr_internal.h
addr.c
adv.c Bluetooth: Host: Remove nested allocation of HCI command buffer 2025-02-21 11:30:38 +00:00
adv.h
aes_ccm.c
att_internal.h tests: bsim: bluetooth: host: att: Add ATT timeout test 2024-10-10 14:59:02 -04:00
att.c Bluetooth: ATT: Disconnect ATT and ACL when receiving inval rsp 2025-02-10 15:56:34 +00:00
buf_view.h
buf.c Bluetooth: Controller: Fix HCI command buffer allocation failure 2025-02-21 11:30:38 +00:00
CMakeLists.txt Bluetooth: Host: Remove HCI ECC emulation 2025-01-23 10:14:46 +01:00
conn_internal.h Bluetooth: Host: deprecate bt_le_set_auto_conn() 2024-11-26 10:37:12 +00:00
conn.c Bluetooth: Host: Add type check for bt_conn API 2025-02-11 22:04:51 +01:00
crypto_psa.c bluetooth: host/crypto: fix the psa crypto init for host 2025-02-10 14:33:24 +01:00
crypto.h bluetooth: host/crypto: fix the psa crypto init for host 2025-02-10 14:33:24 +01:00
cs.c bluetooth: host: Use LOG_WRN for failed CS procedures 2024-11-27 10:31:25 +01:00
data.c
direction_internal.h
direction.c
ecc.c bluetooth: host: Allow for ECDH operations through system workq 2025-02-12 20:26:28 +01:00
ecc.h Bluetooth: Host: SMP: Verify public key before usage 2024-12-11 21:29:08 +01:00
gatt_internal.h
gatt.c bluetooth: host: Add PSA returns to debug prints 2025-02-04 15:05:50 +00:00
hci_common.c Bluetooth: Controller: Fix HCI command buffer allocation failure 2025-02-21 11:30:38 +00:00
hci_core.c Bluetooth: Controller: Fix HCI command buffer allocation failure 2025-02-21 11:30:38 +00:00
hci_core.h Bluetooth: Host: Remove HCI ECC emulation 2025-01-23 10:14:46 +01:00
hci_raw_internal.h Bluetooth: Host: Remove deprecated HCI driver API 2024-11-22 11:37:12 +01:00
hci_raw.c Bluetooth: Controller: Fix HCI command buffer allocation failure 2025-02-21 11:30:38 +00:00
id.c Bluetooth: Host: Add type check for bt_conn API 2025-02-11 22:04:51 +01:00
id.h
iso_internal.h Bluetooth: ISO: Add support for cis_established_v2 in host 2024-12-20 10:19:23 +01:00
iso.c Bluetooth: ISO: Fix -Wsometimes-uninitialized warning 2025-02-08 08:14:26 +01:00
Kconfig bluetooth: host: Allow for ECDH operations through system workq 2025-02-12 20:26:28 +01:00
Kconfig.gatt bluetooth: host: Add select PSA_WANT_ALG_ECB_NO_PADDING 2025-01-30 11:15:24 +01:00
Kconfig.l2cap Bluetooth: Tester: Use BT_L2CAP_SEG_RECV for L2CAP tests 2024-11-27 08:16:18 +01:00
keys.c
keys.h subsys/bluetooth/host/keys.h: Add include guard and required include 2024-10-29 09:24:13 -07:00
l2cap_internal.h Bluetooth: Tester: Use BT_L2CAP_SEG_RECV for L2CAP tests 2024-11-27 08:16:18 +01:00
l2cap.c Bluetooth: Host: Deprecate BT_BUF_ACL_RX_COUNT symbol 2024-11-27 10:30:59 +01:00
long_wq.c
long_wq.h
monitor.c Bluetooth: monitor: Fix SEGGER RTT compilation error 2025-02-10 14:33:01 +01:00
monitor.h
scan.c Bluetooth: Host: Add host support for Advertising Coding Selection 2025-02-14 17:08:23 +01:00
scan.h Bluetooth: Host: Log when connecting while scanning may give bad params 2024-11-27 10:38:27 -05:00
settings.c Bluetooth: Mesh: use settings priority feature 2025-01-14 00:00:56 +01:00
settings.h Bluetooth: Mesh: use settings priority feature 2025-01-14 00:00:56 +01:00
smp_null.c
smp.c bluetooth: host: smp: fix deadlock when public key generation fails 2025-02-18 18:44:23 +01:00
smp.h
uuid.c Bluetooth: Rename BLE to Bluetooth (LE) where applicable 2025-02-12 12:24:18 +01:00