zephyr/subsys/bluetooth
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
..
audio Bluetooth: Audio: Modifed PAST checks to use public API 2025-03-07 19:58:23 +01:00
common subsys/bluetooth: Misc native_posix cleanup 2025-03-12 02:27:36 +01:00
controller subsys/bluetooth: Misc native_posix cleanup 2025-03-12 02:27:36 +01:00
crypto Bluetooth: crypto: add select PSA_WANT_ALG_ECB_NO_PADDING 2025-01-15 22:57:20 +01:00
host Bluetooth: l2CAP_BR: Fix the response cannot be sent out issue 2025-03-12 19:03:05 +01:00
lib
mesh Bluetooth: Mesh: remove api prefix for static functions 2025-03-07 19:58:10 +01:00
services bluetooth: dis: add Kconfig for disabling optional characteristics 2025-02-13 16:46:12 +01:00
CMakeLists.txt Bluetooth: Controller: Replace BT_CTLR with HAS_BT_CTLR 2024-12-03 10:16:44 +01:00
Kconfig Bluetooth: ISO: Add range to BT_ISO_MAX_BIG 2025-02-11 15:42:03 +01:00
Kconfig.adv Bluetooth: Host: Add support for Advertising Coding Selection 2025-02-08 10:09:41 +01:00
Kconfig.logging Bluetooth: AVRCP: Implemation of AVRCP. 2024-11-18 13:19:07 -05:00