zephyr/subsys/bluetooth/host
Lyle Zhu 9a04dfd85e Bluetooth: l2CAP_BR: Fix the response cannot be sent out issue
There is an issue that the L2CAP connect response function
`l2cap_br_conn_req_reply()` is called first. And then the ACL
disconnect function `bt_conn_disconnect()` is called following. But
the packet of `bt_conn_disconnect()` appears on the HCI bus first.

Add a flag `L2CAP_FLAG_DISCONNECT_ACL` to flag whether it is needed to
disconnect ACL connection.

Set the flag `L2CAP_FLAG_DISCONNECT_ACL` when result of the L2CAP
channel conn rsp is `BT_L2CAP_BR_ERR_SEC_BLOCK`.

Add a l2cap packet sent out callback `l2cap_br_conn_rsp_sent_cb()`.
When the callback triggered, disconnect the ACL connect with
`BT_HCI_ERR_AUTH_FAIL` if the flag `L2CAP_FLAG_DISCONNECT_ACL` has
been set.

Signed-off-by: Lyle Zhu <lyle.zhu@nxp.com>
2025-03-12 19:03:05 +01:00
..
classic Bluetooth: l2CAP_BR: Fix the response cannot be sent out issue 2025-03-12 19:03:05 +01:00
shell bluetooth: Host: Rename CS tone antenna configurations 2025-03-11 08:59:19 +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
att.c Bluetooth: Host: Fix deadlock when failing to alloc on BT RX thread 2025-02-28 10:10:01 +01: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: Conn: Add const for conn in bt_conn_get_remote_info 2025-03-07 19:58:23 +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: Use memset to initialize psa_mac_operation_t 2025-03-07 19:59:24 +01:00
hci_common.c Bluetooth: Controller: Fix HCI command buffer allocation failure 2025-02-21 11:30:38 +00:00
hci_core.c bluetooth: host: perform hci-reset in bt_disable() 2025-03-12 19:02:35 +01:00
hci_core.h Bluetooth: Host: Add API for reading LE controller features 2025-03-07 19:58:23 +01:00
hci_raw_internal.h
hci_raw.c Bluetooth: Controller: Fix HCI command buffer allocation failure 2025-02-21 11:30:38 +00:00
id.c bluetooth: id: Fix logging 2025-02-24 15:37:41 +00: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
l2cap_internal.h Bluetooth: Tester: Use BT_L2CAP_SEG_RECV for L2CAP tests 2024-11-27 08:16:18 +01:00
l2cap.c Bluetoth: Host: Fix buffer allocation warnings in system workqueue 2025-02-25 15:14:08 +00: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