1# Bluetooth ATT/GATT configuration options
2
3# Copyright (c) 2019 Intel Corporation
4# SPDX-License-Identifier: Apache-2.0
5
6menu "L2CAP Options"
7
8config BT_L2CAP_TX_BUF_COUNT
9	int "Number of L2CAP TX buffers"
10	default NET_BUF_TX_COUNT if NET_L2_BT
11	default BT_BUF_ACL_TX_COUNT
12	range 2 255
13	help
14	  Number of buffers available for outgoing L2CAP packets.
15
16config BT_L2CAP_TX_FRAG_COUNT
17	int "Number of L2CAP TX fragment buffers"
18	default NET_BUF_TX_COUNT if NET_L2_BT
19	default 2
20	range 0 255
21	help
22	  Number of buffers available for fragments of TX buffers. Warning:
23	  setting this to 0 means that the application must ensure that
24	  queued TX buffers never need to be fragmented, i.e. that the
25	  controller's buffer size is large enough. If this is not ensured,
26	  and there are no dedicated fragment buffers, a deadlock may occur.
27	  In most cases the default value of 2 is a safe bet.
28
29config BT_L2CAP_TX_MTU
30	int "Maximum supported L2CAP MTU for L2CAP TX buffers"
31	default 253 if BT_BREDR
32	default 69 if BT_MESH_GATT
33	default 65 if BT_SMP
34	default 23
35	range 65 2000 if BT_SMP
36	range 23 2000
37	help
38	  Maximum L2CAP MTU for L2CAP TX buffers.
39
40config BT_L2CAP_DYNAMIC_CHANNEL
41	bool "L2CAP Dynamic Channel support"
42	depends on BT_SMP
43	help
44	  This option enables support for LE Connection oriented Channels,
45	  allowing the creation of dynamic L2CAP Channels.
46
47config BT_L2CAP_ECRED
48	bool "L2CAP Enhanced Credit Based Flow Control support"
49	depends on BT_L2CAP_DYNAMIC_CHANNEL
50	help
51	  This option enables support for LE Connection oriented Channels with
52	  Enhanced Credit Based Flow Control support on dynamic L2CAP Channels.
53
54config BT_DEBUG_L2CAP
55	bool "Bluetooth L2CAP debug"
56	depends on BT_DEBUG
57	help
58	  This option enables debug support for the Bluetooth
59	  L2ACP layer.
60
61endmenu
62