Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 84fb0a63 authored by Gustavo Padovan's avatar Gustavo Padovan Committed by Marcel Holtmann
Browse files

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: default avatarGustavo F. Padovan <padovan@profusion.mobi>
Reviewed-by: default avatarJoão Paulo Rechi Vita <jprvita@profusion.mobi>
Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
parent 3b1a9f3f
Loading
Loading
Loading
Loading
+13 −0
Original line number Original line Diff line number Diff line
@@ -43,6 +43,19 @@ config BT_L2CAP
	  Say Y here to compile L2CAP support into the kernel or say M to
	  Say Y here to compile L2CAP support into the kernel or say M to
	  compile it as module (l2cap).
	  compile it as module (l2cap).


config BT_L2CAP_EXT_FEATURES
	bool "L2CAP Extended Features support (EXPERIMENTAL)"
	depends on BT_L2CAP && EXPERIMENTAL
	help
	  This option enables the L2CAP Extended Features support. These
	  new features include the Enhanced Retransmission and Streaming
	  Modes, the Frame Check Sequence (FCS), and Segmentation and
	  Reassembly (SAR) for L2CAP packets. They are a required for the
	  new Alternate MAC/PHY and the Bluetooth Medical Profile.

	  You should say N unless you know what you are doing. Note that
	  this is in an experimental state yet.

config BT_SCO
config BT_SCO
	tristate "SCO links support"
	tristate "SCO links support"
	depends on BT
	depends on BT
+4 −0
Original line number Original line Diff line number Diff line
@@ -55,7 +55,11 @@


#define VERSION "2.14"
#define VERSION "2.14"


#ifdef CONFIG_BT_L2CAP_EXT_FEATURES
static int enable_ertm = 1;
#else
static int enable_ertm = 0;
static int enable_ertm = 0;
#endif
static int max_transmit = L2CAP_DEFAULT_MAX_TX;
static int max_transmit = L2CAP_DEFAULT_MAX_TX;
static int tx_window = L2CAP_DEFAULT_TX_WINDOW;
static int tx_window = L2CAP_DEFAULT_TX_WINDOW;