Skip to content

Commit 84fb0a6

Browse files
Gustavo F. Padovanholtmann
authored andcommitted
Bluetooth: Add Kconfig option for L2CAP Extended Features
The L2CAP Extended Features are still unstable and under development, so we are adding them under the EXPERIMENTAL flag to get more feedback on them. L2CAP Extended Features includes the Enhanced Retransmission and Streaming Modes, Frame Check Sequence (FCS), and Segmentation and Reassemby (SAR). Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi> Reviewed-by: João Paulo Rechi Vita <jprvita@profusion.mobi> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
1 parent 3b1a9f3 commit 84fb0a6

2 files changed

Lines changed: 17 additions & 0 deletions

File tree

‎net/bluetooth/Kconfig‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,19 @@ config BT_L2CAP
4343
Say Y here to compile L2CAP support into the kernel or say M to
4444
compile it as module (l2cap).
4545

46+
config BT_L2CAP_EXT_FEATURES
47+
bool "L2CAP Extended Features support (EXPERIMENTAL)"
48+
depends on BT_L2CAP && EXPERIMENTAL
49+
help
50+
This option enables the L2CAP Extended Features support. These
51+
new features include the Enhanced Retransmission and Streaming
52+
Modes, the Frame Check Sequence (FCS), and Segmentation and
53+
Reassembly (SAR) for L2CAP packets. They are a required for the
54+
new Alternate MAC/PHY and the Bluetooth Medical Profile.
55+
56+
You should say N unless you know what you are doing. Note that
57+
this is in an experimental state yet.
58+
4659
config BT_SCO
4760
tristate "SCO links support"
4861
depends on BT

‎net/bluetooth/l2cap.c‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,11 @@
5555

5656
#define VERSION "2.14"
5757

58+
#ifdef CONFIG_BT_L2CAP_EXT_FEATURES
59+
static int enable_ertm = 1;
60+
#else
5861
static int enable_ertm = 0;
62+
#endif
5963
static int max_transmit = L2CAP_DEFAULT_MAX_TX;
6064
static int tx_window = L2CAP_DEFAULT_TX_WINDOW;
6165

0 commit comments

Comments
 (0)