2015-05-20 11:40:39 -05:00
|
|
|
# Kconfig - Bluetooth LE stack configuration options
|
|
|
|
|
|
|
|
#
|
2017-03-27 16:04:42 +02:00
|
|
|
# Copyright (c) 2016-2017 Nordic Semiconductor ASA
|
2016-06-10 12:10:18 +03:00
|
|
|
# Copyright (c) 2015-2016 Intel Corporation
|
2015-05-20 11:40:39 -05:00
|
|
|
#
|
2017-01-18 17:01:01 -08:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
2015-05-20 11:40:39 -05:00
|
|
|
#
|
2015-05-15 18:46:02 -04:00
|
|
|
|
2016-11-09 12:23:21 +02:00
|
|
|
comment "Host Stack Configuration"
|
2016-03-16 13:05:56 -07:00
|
|
|
|
2017-08-09 09:21:11 +03:00
|
|
|
config BT_HCI_HOST
|
2017-03-27 16:04:42 +02:00
|
|
|
# Virtual/hidden option to make the conditions more intuitive
|
2016-11-09 12:23:21 +02:00
|
|
|
bool
|
2016-08-10 16:51:20 +03:00
|
|
|
default y
|
2017-08-09 09:21:11 +03:00
|
|
|
depends on !BT_HCI_RAW
|
2017-02-02 08:24:28 +02:00
|
|
|
select POLL
|
2016-02-09 11:17:02 +01:00
|
|
|
|
2017-08-09 09:21:11 +03:00
|
|
|
config BT_HCI_CMD_COUNT
|
2015-10-29 16:58:18 +02:00
|
|
|
int "Number of HCI command buffers"
|
|
|
|
default 2
|
2015-10-29 14:45:02 +02:00
|
|
|
range 2 64
|
|
|
|
help
|
2015-10-29 16:58:18 +02:00
|
|
|
Number of buffers available for HCI commands.
|
2015-10-29 14:45:02 +02:00
|
|
|
|
2017-08-09 09:21:11 +03:00
|
|
|
config BT_RX_BUF_COUNT
|
2016-12-21 17:49:39 +02:00
|
|
|
int "Number of HCI RX buffers"
|
2016-12-22 13:45:41 +02:00
|
|
|
default 10
|
2017-08-09 09:21:11 +03:00
|
|
|
default 3 if BT_RECV_IS_RX_THREAD
|
2016-12-31 15:09:56 +02:00
|
|
|
range 2 255
|
2016-12-21 17:49:39 +02:00
|
|
|
help
|
|
|
|
Number of buffers available for incoming ACL packets or HCI events
|
|
|
|
from the controller.
|
|
|
|
|
2017-08-09 09:21:11 +03:00
|
|
|
config BT_RX_BUF_LEN
|
2016-12-21 17:49:39 +02:00
|
|
|
int "Maximum supported HCI RX buffer length"
|
2017-01-16 18:48:31 +02:00
|
|
|
default 76
|
2017-08-09 09:21:11 +03:00
|
|
|
default 264 if BT_BREDR
|
2017-01-16 18:48:31 +02:00
|
|
|
range 73 2000
|
2016-12-21 17:49:39 +02:00
|
|
|
help
|
2017-01-16 18:48:31 +02:00
|
|
|
Maximum data size for each HCI RX buffer. This size includes
|
|
|
|
everything starting with the ACL or HCI event headers. Note that
|
|
|
|
buffer sizes are always rounded up to the nearest multiple of 4,
|
|
|
|
so if this Kconfig value is something else then there will be some
|
|
|
|
wasted space. The minimum of 73 has been taken for LE SC which has
|
|
|
|
an L2CAP MTU of 65 bytes. On top of this there's the L2CAP header
|
|
|
|
(4 bytes) and the ACL header (also 4 bytes) which yields 73 bytes.
|
2016-08-09 11:13:52 +03:00
|
|
|
|
2017-08-09 09:21:11 +03:00
|
|
|
config BT_HCI_TX_STACK_SIZE
|
2017-03-31 08:38:55 +02:00
|
|
|
# Stack size needed for executing bt_send with specified driver
|
|
|
|
int
|
|
|
|
# Even if no driver is selected the following default is still
|
|
|
|
# needed e.g. for unit tests.
|
|
|
|
default 256
|
2017-08-09 09:21:11 +03:00
|
|
|
default 256 if BT_H4
|
|
|
|
default 256 if BT_H5
|
|
|
|
default 256 if BT_SPI
|
|
|
|
default 640 if BT_CONTROLLER
|
2017-03-31 08:38:55 +02:00
|
|
|
|
2017-08-09 09:21:11 +03:00
|
|
|
config BT_HCI_TX_PRIO
|
2017-07-11 09:47:08 +02:00
|
|
|
# Hidden option for Co-Operative Tx thread priority
|
|
|
|
int
|
|
|
|
default 7
|
|
|
|
|
2017-08-09 13:39:35 +02:00
|
|
|
config BT_WAIT_NOP
|
|
|
|
bool "Wait for \"NOP\" Command Complete event during init"
|
|
|
|
depends on BT_HCI
|
|
|
|
help
|
|
|
|
Some controllers emit a Command Complete event for the NOP
|
|
|
|
opcode to indicate that they're ready to receive commands.
|
|
|
|
This option should be selected if the controller used
|
|
|
|
exhibits such behavior.
|
|
|
|
|
2017-08-07 13:41:21 +02:00
|
|
|
# Headroom that the driver needs for sending and receiving buffers.
|
|
|
|
# Add a new 'default' entry for each new driver.
|
2017-08-09 09:21:11 +03:00
|
|
|
config BT_HCI_RESERVE
|
2017-08-07 13:41:21 +02:00
|
|
|
int
|
|
|
|
# Even if no driver is selected the following default is still
|
|
|
|
# needed e.g. for unit tests.
|
|
|
|
default 0
|
2017-08-09 09:21:11 +03:00
|
|
|
default 0 if BT_H4
|
|
|
|
default 1 if BT_H5
|
|
|
|
default 1 if BT_SPI
|
2017-08-07 13:41:21 +02:00
|
|
|
|
2017-08-09 09:21:11 +03:00
|
|
|
config BT_RECV_IS_RX_THREAD
|
2017-03-31 08:38:55 +02:00
|
|
|
# Virtual option set by the HCI driver to indicate that there's
|
|
|
|
# no need for the host to have its own RX thread, rather the
|
|
|
|
# context that bt_recv() gets called in is already good enough.
|
|
|
|
# If this is set, the driver RX thread is required as the first
|
|
|
|
# thing to make a call to bt_rx_thread_ready().
|
|
|
|
bool
|
|
|
|
|
2017-08-09 09:21:11 +03:00
|
|
|
config BT_RX_STACK_SIZE
|
2016-11-10 22:01:50 +02:00
|
|
|
int "Size of the receiving thread stack"
|
2017-08-09 09:21:11 +03:00
|
|
|
depends on BT_HCI_HOST || BT_RECV_IS_RX_THREAD
|
2016-02-12 12:59:55 +02:00
|
|
|
default 1024
|
2017-08-09 09:21:11 +03:00
|
|
|
default 2048 if BT_MESH
|
|
|
|
default 512 if CONFIG_BT_HCI_RAW
|
2016-02-12 12:59:55 +02:00
|
|
|
range 1024 65536
|
2017-08-09 09:21:11 +03:00
|
|
|
range 1100 65536 if BT_MESH
|
|
|
|
range 512 65536 if CONFIG_BT_HCI_RAW
|
2016-02-12 12:59:55 +02:00
|
|
|
help
|
2016-11-10 22:01:50 +02:00
|
|
|
Size of the receiving thread stack. This is the context from
|
2016-02-12 12:59:55 +02:00
|
|
|
which all event callbacks to the application occur. The
|
|
|
|
default value is sufficient for basic operation, but if the
|
|
|
|
application needs to do advanced things in its callbacks that
|
|
|
|
require extra stack space, this value can be increased to
|
2016-10-05 10:00:41 -05:00
|
|
|
accommodate for that.
|
2016-02-12 12:59:55 +02:00
|
|
|
|
2017-08-09 09:21:11 +03:00
|
|
|
config BT_RX_PRIO
|
2017-07-11 09:47:08 +02:00
|
|
|
# Hidden option for Co-Operative Rx thread priority
|
|
|
|
int
|
2017-08-09 09:21:11 +03:00
|
|
|
depends on BT_HCI_HOST || BT_RECV_IS_RX_THREAD
|
2017-07-11 09:47:08 +02:00
|
|
|
default 8
|
|
|
|
|
2017-08-09 09:21:11 +03:00
|
|
|
if BT_HCI_HOST
|
2017-06-16 12:30:54 +03:00
|
|
|
|
|
|
|
source "subsys/bluetooth/host/mesh/Kconfig"
|
|
|
|
|
2017-08-09 09:21:11 +03:00
|
|
|
config BT_HOST_CRYPTO
|
2017-03-15 11:19:27 +01:00
|
|
|
# Hidden option that compiles in random number generation and AES
|
|
|
|
# encryption support using TinyCrypt library if software-based
|
|
|
|
# controller is disabled.
|
|
|
|
bool
|
2017-08-09 09:21:11 +03:00
|
|
|
default y if !BT_CONTROLLER
|
2017-03-15 11:19:27 +01:00
|
|
|
select TINYCRYPT
|
|
|
|
select TINYCRYPT_AES
|
|
|
|
select TINYCRYPT_SHA256
|
|
|
|
select TINYCRYPT_SHA256_HMAC
|
|
|
|
select TINYCRYPT_SHA256_HMAC_PRNG
|
|
|
|
|
2017-08-09 09:21:11 +03:00
|
|
|
config BT_INTERNAL_STORAGE
|
2016-12-25 15:17:50 +02:00
|
|
|
bool "Use an internal persistent storage handler"
|
|
|
|
depends on FILE_SYSTEM
|
|
|
|
depends on PRINTK
|
|
|
|
help
|
|
|
|
When selected the application doesn't need to register its own
|
|
|
|
persistent storage handlers through the bt_storage API, rather
|
|
|
|
an internal default handler is used for this.
|
|
|
|
|
2017-08-09 09:21:11 +03:00
|
|
|
if BT_CONN
|
2017-05-04 14:09:10 +03:00
|
|
|
|
2017-08-09 09:21:11 +03:00
|
|
|
if BT_HCI_ACL_FLOW_CONTROL
|
|
|
|
config BT_ACL_RX_COUNT
|
2017-05-04 14:09:10 +03:00
|
|
|
int "Number of incoming ACL data buffers"
|
|
|
|
default 6
|
2017-08-09 09:21:11 +03:00
|
|
|
default BT_CONTROLLER_RX_BUFFERS if BT_CONTROLLER
|
2017-05-04 14:09:10 +03:00
|
|
|
range 2 64
|
|
|
|
help
|
|
|
|
Number of buffers available for incoming ACL data.
|
|
|
|
|
2017-08-09 09:21:11 +03:00
|
|
|
config BT_L2CAP_RX_MTU
|
2017-05-04 14:09:10 +03:00
|
|
|
int "Maximum supported L2CAP MTU for incoming data"
|
|
|
|
default 23
|
2017-08-09 09:21:11 +03:00
|
|
|
default 65 if BT_SMP
|
|
|
|
default 200 if BT_BREDR
|
2017-05-04 14:09:10 +03:00
|
|
|
range 23 1300
|
2017-08-09 09:21:11 +03:00
|
|
|
range 65 1300 if BT_SMP
|
2017-05-04 14:09:10 +03:00
|
|
|
help
|
|
|
|
Maximum size of each incoming L2CAP PDU.
|
2017-08-09 09:21:11 +03:00
|
|
|
endif # BT_HCI_ACL_FLOW_CONTROL
|
2017-05-04 14:09:10 +03:00
|
|
|
|
2017-08-09 09:21:11 +03:00
|
|
|
config BT_L2CAP_TX_BUF_COUNT
|
2017-01-07 17:05:58 +02:00
|
|
|
int "Number of L2CAP TX buffers"
|
|
|
|
default 3
|
|
|
|
range 2 255
|
|
|
|
help
|
|
|
|
Number of buffers available for outgoing L2CAP packets.
|
|
|
|
|
2017-08-09 09:21:11 +03:00
|
|
|
config BT_L2CAP_TX_MTU
|
2017-01-07 17:05:58 +02:00
|
|
|
int "Maximum supported L2CAP MTU for L2CAP TX buffers"
|
2016-08-25 13:49:13 +03:00
|
|
|
default 23
|
2017-08-09 09:21:11 +03:00
|
|
|
default 65 if BT_SMP
|
|
|
|
default 253 if BT_BREDR
|
2017-01-07 17:05:58 +02:00
|
|
|
range 23 2000
|
2017-08-09 09:21:11 +03:00
|
|
|
range 65 2000 if BT_SMP
|
2015-11-06 12:19:26 +02:00
|
|
|
help
|
2017-01-07 17:05:58 +02:00
|
|
|
Maximum L2CAP MTU for L2CAP TX buffers.
|
|
|
|
|
2017-08-09 09:21:11 +03:00
|
|
|
config BT_CONN_TX_MAX
|
2017-03-17 08:02:57 +02:00
|
|
|
int "Maximum number of pending TX buffers"
|
|
|
|
default 7
|
2017-08-09 09:21:11 +03:00
|
|
|
default BT_CONTROLLER_TX_BUFFERS if BT_CONTROLLER
|
2017-03-17 08:02:57 +02:00
|
|
|
range 1 128
|
|
|
|
help
|
|
|
|
Maximum number of pending TX buffers that have not yet
|
|
|
|
been acknowledged by the controller.
|
|
|
|
|
2017-08-09 09:21:11 +03:00
|
|
|
config BT_L2CAP_TX_USER_DATA_SIZE
|
2017-01-07 17:05:58 +02:00
|
|
|
int "Maximum supported user data size for L2CAP TX buffers"
|
|
|
|
default 4
|
|
|
|
range 4 65535
|
|
|
|
help
|
|
|
|
Maximum supported user data size for L2CAP TX buffers.
|
2015-10-29 14:45:02 +02:00
|
|
|
|
2017-08-09 09:21:11 +03:00
|
|
|
config BT_ATT_ENFORCE_FLOW
|
2017-03-19 12:12:06 +02:00
|
|
|
bool "Enforce strict flow control semantics for incoming PDUs"
|
|
|
|
default y
|
|
|
|
default n if BOARD_QEMU_CORTEX_M3 || BOARD_QEMU_X86
|
|
|
|
help
|
|
|
|
Enforce flow control rules on incoming PDUs, preventing a peer
|
|
|
|
from sending new requests until a previous one has been responded
|
|
|
|
or sending a new indication until a previous one has been
|
|
|
|
confirmed. This may need to be disabled to avoid potential race
|
|
|
|
conditions arising from a USB based HCI transport that splits
|
|
|
|
HCI events and ACL data to separate endpoints.
|
|
|
|
|
2017-08-09 09:21:11 +03:00
|
|
|
config BT_ATT_PREPARE_COUNT
|
2016-06-01 12:05:37 +03:00
|
|
|
int "Number of ATT prepare write buffers"
|
|
|
|
default 0
|
|
|
|
range 0 64
|
|
|
|
help
|
|
|
|
Number of buffers available for ATT prepare write, setting
|
|
|
|
this to 0 disables GATT long/reliable writes.
|
|
|
|
|
2017-08-09 09:21:11 +03:00
|
|
|
config BT_ATT_TX_MAX
|
2017-03-30 18:45:01 +03:00
|
|
|
int "Maximum number of queued outgoing ATT PDUs"
|
|
|
|
default 2
|
2017-08-09 09:21:11 +03:00
|
|
|
range 1 BT_L2CAP_TX_BUF_COUNT
|
2017-03-30 18:45:01 +03:00
|
|
|
help
|
|
|
|
Number of ATT PDUs that can be at a single moment queued for
|
|
|
|
transmission. If the application tries to send more than this
|
|
|
|
amount the calls will block until an existing queued PDU gets
|
|
|
|
sent.
|
|
|
|
|
2017-08-09 09:21:11 +03:00
|
|
|
config BT_SMP
|
2015-10-29 13:59:54 +02:00
|
|
|
bool "Security Manager Protocol support"
|
2017-01-18 17:05:01 +02:00
|
|
|
select TINYCRYPT
|
2016-11-09 12:23:21 +02:00
|
|
|
select TINYCRYPT_AES
|
|
|
|
select TINYCRYPT_AES_CMAC
|
2017-08-09 09:21:11 +03:00
|
|
|
select BT_RPA
|
2015-11-06 22:22:33 +02:00
|
|
|
help
|
|
|
|
This option enables support for the Security Manager Protocol
|
|
|
|
(SMP), making it possible to pair devices over LE.
|
2015-09-09 17:27:16 +02:00
|
|
|
|
2017-08-09 09:21:11 +03:00
|
|
|
if BT_SMP
|
|
|
|
config BT_PRIVACY
|
2016-04-04 12:55:11 +03:00
|
|
|
bool "Privacy Feature"
|
|
|
|
help
|
|
|
|
Enable local Privacy Feature support. This makes it possible
|
|
|
|
to use Resolvable Private Addresses (RPAs).
|
|
|
|
|
2017-08-09 09:21:11 +03:00
|
|
|
config BT_RPA_TIMEOUT
|
2016-07-19 11:55:21 +02:00
|
|
|
int "Resolvable Private Address timeout"
|
2017-08-09 09:21:11 +03:00
|
|
|
depends on BT_PRIVACY
|
2016-07-19 11:55:21 +02:00
|
|
|
default 900
|
|
|
|
range 1 65535
|
|
|
|
help
|
|
|
|
This option defines how often resolvable private address is rotated.
|
|
|
|
Value is provided in seconds and defaults to 900 seconds (15 minutes).
|
|
|
|
|
2017-08-09 09:21:11 +03:00
|
|
|
config BT_SIGNING
|
2015-10-29 13:59:54 +02:00
|
|
|
bool "Data signing support"
|
2015-09-08 14:10:31 +02:00
|
|
|
help
|
|
|
|
This option enables data signing which is used for transferring
|
|
|
|
authenticated data in an unencrypted connection.
|
2015-12-08 16:59:19 +01:00
|
|
|
|
2017-08-09 09:21:11 +03:00
|
|
|
config BT_SMP_SC_ONLY
|
2015-12-08 16:59:19 +01:00
|
|
|
bool "Secure Connections Only Mode"
|
|
|
|
help
|
|
|
|
This option enables support for Secure Connection Only Mode. In this
|
|
|
|
mode device shall only use Security Mode 1 Level 4 with exception
|
|
|
|
for services that only require Security Mode 1 Level 1 (no security).
|
|
|
|
Security Mode 1 Level 4 stands for authenticated LE Secure Connections
|
|
|
|
pairing with encryption. Enabling this option disables legacy pairing.
|
2016-02-11 18:27:06 +01:00
|
|
|
|
2017-08-09 09:21:11 +03:00
|
|
|
config BT_USE_DEBUG_KEYS
|
2016-03-01 10:57:53 +01:00
|
|
|
bool "Enable Security Manager Debug Mode"
|
2017-08-09 09:21:11 +03:00
|
|
|
depends on BT_TINYCRYPT_ECC
|
2016-03-01 10:57:53 +01:00
|
|
|
help
|
|
|
|
This option places Security Manager in a Debug Mode. In this mode
|
|
|
|
predefined Diffie-Hellman private/public key pair is used as described
|
|
|
|
in Core Specification Vol. 3, Part H, 2.3.5.6.1. This option should
|
|
|
|
only be enabled for debugging and should never be used in production.
|
|
|
|
If this option is enabled anyone is able to decipher encrypted air
|
|
|
|
traffic.
|
|
|
|
|
2017-08-09 09:21:11 +03:00
|
|
|
endif # BT_SMP
|
2015-12-08 16:31:45 +01:00
|
|
|
|
2017-08-09 09:21:11 +03:00
|
|
|
config BT_L2CAP_DYNAMIC_CHANNEL
|
2015-12-08 16:31:45 +01:00
|
|
|
bool "L2CAP Dynamic Channel support"
|
2017-08-09 09:21:11 +03:00
|
|
|
depends on BT_SMP
|
2015-12-08 16:31:45 +01:00
|
|
|
help
|
|
|
|
This option enables support for LE Connection oriented Channels,
|
|
|
|
allowing the creation of dynamic L2CAP Channels.
|
2015-09-08 14:10:31 +02:00
|
|
|
|
2017-08-09 09:21:11 +03:00
|
|
|
config BT_GATT_CLIENT
|
2015-10-29 13:59:54 +02:00
|
|
|
bool "GATT client support"
|
2015-11-06 22:22:33 +02:00
|
|
|
help
|
|
|
|
This option enables support for the GATT Client role.
|
2015-09-08 12:47:33 +02:00
|
|
|
|
2017-08-09 09:21:11 +03:00
|
|
|
config BT_MAX_PAIRED
|
2015-10-29 13:59:54 +02:00
|
|
|
int "Maximum number of paired devices"
|
2015-05-26 17:20:05 -04:00
|
|
|
default 1
|
2017-08-09 09:21:11 +03:00
|
|
|
default 0 if !BT_SMP
|
2017-07-04 14:56:40 +03:00
|
|
|
range 0 128
|
2015-05-26 17:20:05 -04:00
|
|
|
help
|
|
|
|
Maximum number of paired Bluetooth devices. The minimum (and
|
|
|
|
default) number is 1.
|
|
|
|
|
2017-08-09 09:21:11 +03:00
|
|
|
endif # BT_CONN
|
2015-11-06 21:49:51 +02:00
|
|
|
|
2017-08-09 09:21:11 +03:00
|
|
|
config BT_DEVICE_NAME
|
2017-01-27 15:20:32 +02:00
|
|
|
string "Bluetooth device name"
|
|
|
|
default "Zephyr"
|
|
|
|
help
|
|
|
|
Bluetooth device name. Name can be up to 248 bytes long (excluding
|
|
|
|
NULL termination). Can be empty string.
|
|
|
|
|
2017-08-09 09:21:11 +03:00
|
|
|
config BT_DEVICE_APPEARANCE
|
2017-06-02 15:36:08 +03:00
|
|
|
int "Bluetooth device appearance"
|
|
|
|
range 0 65535
|
|
|
|
default 0
|
|
|
|
help
|
|
|
|
Bluetooth device appearance. For the list of possible values please
|
|
|
|
consult the following link:
|
|
|
|
https://www.bluetooth.com/specifications/assigned-numbers
|
|
|
|
|
2017-08-09 09:21:11 +03:00
|
|
|
endif # BT_HCI_HOST
|
2016-11-16 16:24:27 +01:00
|
|
|
|
2017-08-09 09:21:11 +03:00
|
|
|
config BT_TINYCRYPT_ECC
|
2016-07-22 09:54:12 +03:00
|
|
|
bool "Use TinyCrypt library for ECDH"
|
2016-11-16 16:24:27 +01:00
|
|
|
select TINYCRYPT
|
2016-07-22 09:54:12 +03:00
|
|
|
select TINYCRYPT_ECC_DH
|
2017-08-09 09:21:11 +03:00
|
|
|
depends on BT_HCI_RAW || BT_HCI_HOST
|
2016-07-22 09:54:12 +03:00
|
|
|
help
|
|
|
|
If this option is set TinyCrypt library is used for emulating the
|
|
|
|
ECDH HCI commands and events needed by e.g. LE Secure Connections.
|
2016-11-16 16:24:27 +01:00
|
|
|
In builds including the BLE Host, if not set the controller crypto is
|
|
|
|
used for ECDH and if the controller doesn't support the required HCI
|
|
|
|
commands the LE Secure Connections support will be disabled.
|
|
|
|
In builds including the HCI Raw interface and the BLE Controller, this
|
|
|
|
option injects support for the 2 HCI commands required for LE Secure
|
|
|
|
Connections so that Hosts can make use of those.
|
2015-11-16 15:16:52 +01:00
|
|
|
|
2017-08-09 09:21:11 +03:00
|
|
|
if BT_DEBUG
|
|
|
|
config BT_DEBUG_HCI_CORE
|
2015-11-06 21:49:51 +02:00
|
|
|
bool "Bluetooth HCI core debug"
|
|
|
|
help
|
|
|
|
This option enables debug support for Bluetooth HCI
|
|
|
|
core.
|
|
|
|
|
2017-08-09 09:21:11 +03:00
|
|
|
config BT_DEBUG_CONN
|
2015-10-29 13:59:54 +02:00
|
|
|
bool "Bluetooth connection debug"
|
2017-08-09 09:21:11 +03:00
|
|
|
depends on BT_CONN
|
2015-05-15 18:46:02 -04:00
|
|
|
help
|
|
|
|
This option enables debug support for Bluetooth
|
|
|
|
connection handling.
|
|
|
|
|
2017-08-09 09:21:11 +03:00
|
|
|
config BT_DEBUG_KEYS
|
2015-10-29 13:59:54 +02:00
|
|
|
bool "Bluetooth security keys debug"
|
2017-08-09 09:21:11 +03:00
|
|
|
depends on BT_HCI_HOST
|
|
|
|
depends on BT_SMP
|
2015-06-30 10:47:53 +03:00
|
|
|
help
|
|
|
|
This option enables debug support for the handling of
|
|
|
|
Bluetooth security keys.
|
|
|
|
|
2017-08-09 09:21:11 +03:00
|
|
|
config BT_DEBUG_L2CAP
|
2015-10-29 13:59:54 +02:00
|
|
|
bool "Bluetooth L2CAP debug"
|
2017-08-09 09:21:11 +03:00
|
|
|
depends on BT_CONN
|
2015-05-15 18:46:02 -04:00
|
|
|
help
|
|
|
|
This option enables debug support for the Bluetooth
|
|
|
|
L2ACP layer.
|
|
|
|
|
2017-08-09 09:21:11 +03:00
|
|
|
config BT_DEBUG_SMP
|
2015-10-29 13:59:54 +02:00
|
|
|
bool "Bluetooth Security Manager Protocol (SMP) debug"
|
2017-08-09 09:21:11 +03:00
|
|
|
depends on BT_HCI_HOST
|
|
|
|
depends on BT_SMP
|
2015-05-15 18:46:02 -04:00
|
|
|
help
|
|
|
|
This option enables debug support for the Bluetooth
|
|
|
|
Security Manager Protocol (SMP).
|
|
|
|
|
2017-08-09 09:21:11 +03:00
|
|
|
config BT_SMP_SELFTEST
|
2015-10-29 13:59:54 +02:00
|
|
|
bool "Bluetooth SMP self tests executed on init"
|
2017-08-09 09:21:11 +03:00
|
|
|
depends on BT_DEBUG_SMP
|
2015-08-12 14:55:09 +03:00
|
|
|
help
|
|
|
|
This option enables SMP self-tests executed on startup
|
|
|
|
to verify security and crypto functions.
|
|
|
|
|
2017-08-09 09:21:11 +03:00
|
|
|
config BT_SMP_FORCE_BREDR
|
2016-09-07 17:30:37 +02:00
|
|
|
bool "Force Bluetooth SMP over BR/EDR"
|
2017-08-09 09:21:11 +03:00
|
|
|
depends on BT_DEBUG_SMP
|
2016-09-07 17:30:37 +02:00
|
|
|
help
|
|
|
|
This option enables SMP over BR/EDR even if controller is not
|
2017-04-21 10:55:27 -07:00
|
|
|
supporting BR/EDR Secure Connections. This option is solely for
|
2016-09-07 17:30:37 +02:00
|
|
|
testing and should never be enabled on production devices.
|
|
|
|
|
2017-08-09 09:21:11 +03:00
|
|
|
config BT_DEBUG_ATT
|
2015-10-29 13:59:54 +02:00
|
|
|
bool "Bluetooth Attribute Protocol (ATT) debug"
|
2017-08-09 09:21:11 +03:00
|
|
|
depends on BT_CONN
|
2015-05-15 18:46:02 -04:00
|
|
|
help
|
|
|
|
This option enables debug support for the Bluetooth
|
|
|
|
Attribute Protocol (ATT).
|
|
|
|
|
2017-08-09 09:21:11 +03:00
|
|
|
config BT_DEBUG_GATT
|
2015-10-29 13:59:54 +02:00
|
|
|
bool "Bluetooth Generic Attribute Profile (GATT) debug"
|
2017-08-09 09:21:11 +03:00
|
|
|
depends on BT_CONN
|
2015-05-26 17:20:05 -04:00
|
|
|
help
|
|
|
|
This option enables debug support for the Bluetooth
|
|
|
|
Generic Attribute Profile (GATT).
|
2015-11-06 22:22:33 +02:00
|
|
|
|
2017-08-09 09:21:11 +03:00
|
|
|
config BT_DEBUG_RFCOMM
|
2016-08-17 23:25:09 +05:30
|
|
|
bool "Bluetooth RFCOMM debug"
|
2017-08-09 09:21:11 +03:00
|
|
|
depends on BT_RFCOMM
|
2016-08-17 23:25:09 +05:30
|
|
|
help
|
|
|
|
This option enables debug support for the Bluetooth
|
|
|
|
RFCOMM layer.
|
|
|
|
|
2017-08-09 09:21:11 +03:00
|
|
|
config BT_DEBUG_HFP_HF
|
2016-08-26 14:47:27 +05:30
|
|
|
bool "Bluetooth Hands Free Profile (HFP) debug"
|
2017-08-09 09:21:11 +03:00
|
|
|
depends on BT_HFP_HF
|
2016-08-26 14:47:27 +05:30
|
|
|
help
|
|
|
|
This option enables debug support for the Bluetooth
|
|
|
|
Hands Free Profile (HFP).
|
|
|
|
|
2017-08-09 09:21:11 +03:00
|
|
|
config BT_DEBUG_AVDTP
|
2016-09-19 18:19:12 +03:00
|
|
|
bool "Bluetooth AVDTP debug"
|
2017-08-09 09:21:11 +03:00
|
|
|
depends on BT_AVDTP
|
2016-09-19 18:19:12 +03:00
|
|
|
help
|
|
|
|
This option enables debug support for the Bluetooth AVDTP.
|
|
|
|
|
2017-08-09 09:21:11 +03:00
|
|
|
config BT_DEBUG_A2DP
|
2016-09-15 16:21:57 +05:30
|
|
|
bool "Bluetooth A2DP debug"
|
2017-08-09 09:21:11 +03:00
|
|
|
depends on BT_A2DP
|
2016-09-15 16:21:57 +05:30
|
|
|
help
|
|
|
|
This option enables debug support for the Bluetooth
|
|
|
|
A2DP profile.
|
2016-09-15 19:27:25 +05:30
|
|
|
|
2017-08-09 09:21:11 +03:00
|
|
|
config BT_DEBUG_SDP
|
2016-09-15 19:27:25 +05:30
|
|
|
bool "Bluetooth Service Discovery Protocol (SDP) debug"
|
2017-08-09 09:21:11 +03:00
|
|
|
depends on BT_BREDR
|
2016-09-15 19:27:25 +05:30
|
|
|
help
|
|
|
|
This option enables debug support for the Bluetooth
|
|
|
|
Service Discovery Protocol (SDP).
|
|
|
|
|
2017-08-09 09:21:11 +03:00
|
|
|
endif # BT_DEBUG
|
2015-11-06 21:49:51 +02:00
|
|
|
|
2017-08-09 09:21:11 +03:00
|
|
|
config BT_BREDR
|
2015-11-17 10:26:45 +02:00
|
|
|
bool "Bluetooth BR/EDR support [EXPERIMENTAL]"
|
2017-08-09 09:21:11 +03:00
|
|
|
depends on BT_HCI_HOST
|
|
|
|
select BT_PERIPHERAL
|
|
|
|
select BT_CENTRAL
|
|
|
|
select BT_SMP
|
|
|
|
select BT_L2CAP_DYNAMIC_CHANNEL
|
2015-11-12 08:04:13 +01:00
|
|
|
help
|
2015-11-17 10:26:45 +02:00
|
|
|
This option enables Bluetooth BR/EDR support"
|
2015-11-12 08:04:13 +01:00
|
|
|
|
2017-08-09 09:21:11 +03:00
|
|
|
if BT_BREDR
|
|
|
|
config BT_MAX_SCO_CONN
|
2017-03-31 11:39:41 +02:00
|
|
|
int "Maximum number of simultaneous SCO connections"
|
|
|
|
default 1
|
|
|
|
range 1 3
|
|
|
|
help
|
|
|
|
Maximum number of simultaneous Bluetooth synchronous connections
|
|
|
|
supported. The minimum (and default) number is 1.
|
|
|
|
|
2017-08-09 09:21:11 +03:00
|
|
|
config BT_RFCOMM
|
2016-08-17 23:25:09 +05:30
|
|
|
bool "Bluetooth RFCOMM protocol support [EXPERIMENTAL]"
|
|
|
|
help
|
|
|
|
This option enables Bluetooth RFCOMM support
|
|
|
|
|
2017-08-09 09:21:11 +03:00
|
|
|
config BT_RFCOMM_L2CAP_MTU
|
2016-09-23 14:57:25 +02:00
|
|
|
int "L2CAP MTU for RFCOMM frames"
|
2017-08-09 09:21:11 +03:00
|
|
|
default BT_RX_BUF_LEN
|
|
|
|
default BT_L2CAP_RX_MTU if BT_HCI_ACL_FLOW_CONTROL
|
|
|
|
depends on BT_RFCOMM
|
|
|
|
range BT_RX_BUF_LEN 32767
|
|
|
|
range BT_L2CAP_RX_MTU 32767 if BT_HCI_ACL_FLOW_CONTROL
|
2016-09-23 14:57:25 +02:00
|
|
|
help
|
|
|
|
Maximum size of L2CAP PDU for RFCOMM frames.
|
|
|
|
|
2017-08-09 09:21:11 +03:00
|
|
|
config BT_HFP_HF
|
2016-08-26 14:47:27 +05:30
|
|
|
bool "Bluetooth Handsfree profile HF Role support [EXPERIMENTAL]"
|
2016-12-06 21:46:10 +02:00
|
|
|
depends on PRINTK
|
2017-08-09 09:21:11 +03:00
|
|
|
select BT_RFCOMM
|
2016-08-26 14:47:27 +05:30
|
|
|
help
|
|
|
|
This option enables Bluetooth HF support
|
|
|
|
|
2017-08-09 09:21:11 +03:00
|
|
|
config BT_AVDTP
|
2016-09-13 15:14:21 +05:30
|
|
|
bool "Bluetooth AVDTP protocol support [EXPERIMENTAL]"
|
|
|
|
help
|
|
|
|
This option enables Bluetooth AVDTP support
|
|
|
|
|
2017-08-09 09:21:11 +03:00
|
|
|
config BT_A2DP
|
2016-09-15 16:21:57 +05:30
|
|
|
bool "Bluetooth A2DP Profile [EXPERIMENTAL]"
|
2017-08-09 09:21:11 +03:00
|
|
|
select BT_AVDTP
|
2016-09-15 16:21:57 +05:30
|
|
|
help
|
|
|
|
This option enables the A2DP profile
|
|
|
|
|
2017-08-09 09:21:11 +03:00
|
|
|
config BT_PAGE_TIMEOUT
|
2016-10-12 09:39:19 +05:30
|
|
|
hex "Bluetooth Page Timeout"
|
|
|
|
default 0x2000
|
|
|
|
range 0x0001 0xffff
|
|
|
|
help
|
|
|
|
This option sets the page timeout value. Value is selected as
|
|
|
|
(N * 0.625) ms.
|
|
|
|
|
2017-08-09 09:21:11 +03:00
|
|
|
endif # BT_BREDR
|