zephyr/subsys/bluetooth/host/classic
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
..
shell Bluetooth: BR: Support limited discoverable mode 2025-03-07 19:46:53 +01:00
a2dp_codec_sbc.c
a2dp_internal.h
a2dp.c bluetooth: avdtp: move the buf as callback parameter 2025-03-07 19:45:20 +01:00
at.c
at.h
avctp_internal.h Bluetooth: AVRCP: fix bitfield issue. 2024-11-18 13:19:07 -05:00
avctp.c Bluetooth: AVRCP: implementation for passthrough commands 2025-02-14 17:13:23 +01:00
avdtp_internal.h bluetooth: avdtp: move the buf as callback parameter 2025-03-07 19:45:20 +01:00
avdtp.c bluetooth: avdtp: move the buf as callback parameter 2025-03-07 19:45:20 +01:00
avrcp_internal.h Bluetooth: AVRCP: implementation for passthrough commands 2025-02-14 17:13:23 +01:00
avrcp.c Bluetooth: AVRCP: implementation for passthrough commands 2025-02-14 17:13:23 +01:00
br.c Bluetooth: BR: Support limited discoverable mode 2025-03-07 19:46:53 +01:00
br.h
CMakeLists.txt Bluetooth: AVRCP: Implemation of AVRCP. 2024-11-18 13:19:07 -05:00
hfp_ag_internal.h
hfp_ag.c
hfp_hf.c Bluetooth: RFCOMM: Add a argument server to bt_rfcomm_server.accept 2025-01-17 13:54:13 +01:00
hfp_internal.h
Kconfig Bluetooth: BR: Support limited discoverable mode 2025-03-07 19:46:53 +01:00
keys_br.c
l2cap_br_interface.h
l2cap_br_internal.h Bluetooth: SSP: Fix MITM flag incorrect issue in pairing 2025-03-12 07:14:25 +01:00
l2cap_br.c Bluetooth: l2CAP_BR: Fix the response cannot be sent out issue 2025-03-12 19:03:05 +01:00
rfcomm_internal.h Bluetooth: RFCOMM: Move BT_RFCOMM_BUF_SIZE to rfcomm.h 2025-01-17 10:41:49 +01:00
rfcomm.c Bluetooth: RFCOMM: Add a argument server to bt_rfcomm_server.accept 2025-01-17 13:54:13 +01:00
sco_internal.h
sco.c
sdp_internal.h
sdp.c Bluetooth: SDP: Notify upper layer if the response data len is 0 2025-03-10 21:49:41 +01:00
ssp.c Bluetooth: SSP: Fix MITM flag incorrect issue in pairing 2025-03-12 07:14:25 +01:00
ssp.h