2015-05-20 11:40:39 -05:00
|
|
|
# Kconfig - Bluetooth LE stack configuration options
|
|
|
|
|
|
|
|
#
|
2016-06-10 12:10:18 +03:00
|
|
|
# Copyright (c) 2015-2016 Intel Corporation
|
2015-05-20 11:40:39 -05:00
|
|
|
#
|
2015-10-06 11:00:37 -05:00
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
# you may not use this file except in compliance with the License.
|
|
|
|
# You may obtain a copy of the License at
|
2015-05-20 11:40:39 -05:00
|
|
|
#
|
2015-10-06 11:00:37 -05:00
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
2015-05-20 11:40:39 -05:00
|
|
|
#
|
2015-10-06 11:00:37 -05:00
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
# limitations under the License.
|
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
|
|
|
|
2016-11-28 18:24:05 +01:00
|
|
|
# Stack size needed for executing bt_send with specified driver
|
2016-12-29 11:17:59 +01:00
|
|
|
config BLUETOOTH_HCI_TX_STACK_SIZE
|
2016-11-28 18:24:05 +01:00
|
|
|
int
|
|
|
|
# Even if no driver is selected the following default is still
|
|
|
|
# needed e.g. for unit tests.
|
|
|
|
default 256
|
|
|
|
default 256 if BLUETOOTH_H4
|
|
|
|
default 256 if BLUETOOTH_H5
|
2016-12-30 12:01:05 +01:00
|
|
|
default 640 if BLUETOOTH_CONTROLLER
|
2016-11-28 18:24:05 +01:00
|
|
|
|
2016-11-09 12:23:21 +02:00
|
|
|
config BLUETOOTH_HCI_RAW
|
|
|
|
bool "RAW HCI access"
|
2016-08-09 11:13:52 +03:00
|
|
|
help
|
|
|
|
This option allows to access Bluetooth controller
|
|
|
|
from the application with the RAW HCI protocol.
|
|
|
|
|
2016-11-09 12:23:21 +02:00
|
|
|
# Virtual/hidden option to make the conditions more intuitive
|
|
|
|
config BLUETOOTH_HCI_HOST
|
|
|
|
bool
|
2016-08-10 16:51:20 +03:00
|
|
|
default y
|
2016-11-09 12:23:21 +02:00
|
|
|
depends on !BLUETOOTH_HCI_RAW
|
2016-02-09 11:17:02 +01:00
|
|
|
select TINYCRYPT
|
|
|
|
select TINYCRYPT_SHA256
|
|
|
|
select TINYCRYPT_SHA256_HMAC
|
|
|
|
select TINYCRYPT_SHA256_HMAC_PRNG
|
|
|
|
|
2016-12-21 21:09:27 +02:00
|
|
|
config BLUETOOTH_RECV_IS_RX_THREAD
|
|
|
|
# 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
|
|
|
|
|
2016-05-24 18:17:13 -05:00
|
|
|
config BLUETOOTH_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
|
|
|
|
2016-05-24 18:17:13 -05:00
|
|
|
config BLUETOOTH_MAX_CMD_LEN
|
2015-11-06 12:44:40 +02:00
|
|
|
int "Maximum supported HCI command length"
|
|
|
|
default 64
|
2016-08-09 10:06:41 +02:00
|
|
|
default 255 if BLUETOOTH_BREDR
|
2015-11-06 12:44:40 +02:00
|
|
|
range 64 255
|
2016-08-09 10:06:41 +02:00
|
|
|
range 255 255 if BLUETOOTH_BREDR
|
2015-10-29 14:45:02 +02:00
|
|
|
help
|
2015-11-06 12:44:40 +02:00
|
|
|
Maximum length of each HCI command.
|
2015-10-29 16:58:18 +02:00
|
|
|
|
2016-12-21 17:49:39 +02:00
|
|
|
config BLUETOOTH_RX_BUF_COUNT
|
|
|
|
int "Number of HCI RX buffers"
|
2016-12-22 13:45:41 +02:00
|
|
|
default 10
|
|
|
|
default 1 if BLUETOOTH_RECV_IS_RX_THREAD
|
2016-12-21 17:49:39 +02:00
|
|
|
range 1 255
|
|
|
|
help
|
|
|
|
Number of buffers available for incoming ACL packets or HCI events
|
|
|
|
from the controller.
|
|
|
|
|
|
|
|
config BLUETOOTH_RX_BUF_LEN
|
|
|
|
int "Maximum supported HCI RX buffer length"
|
|
|
|
default 70
|
|
|
|
default 253 if BLUETOOTH_BREDR
|
|
|
|
range 70 2000
|
|
|
|
help
|
|
|
|
Maximum data size for each HCI RX buffer.
|
2016-08-09 11:13:52 +03:00
|
|
|
|
2016-10-15 21:19:08 +02:00
|
|
|
config BLUETOOTH_UART_TO_HOST_DEV_NAME
|
|
|
|
string "Device Name of UART Device to an external Bluetooth Host"
|
|
|
|
default "UART_0"
|
2016-11-09 12:23:21 +02:00
|
|
|
depends on BLUETOOTH_HCI_RAW
|
2016-10-15 21:19:08 +02:00
|
|
|
help
|
|
|
|
This option specifies the name of UART device to be used
|
|
|
|
to connect to an external Bluetooth Host when Zephyr is
|
|
|
|
acting as a Bluetooth Controller.
|
|
|
|
|
2016-11-09 12:23:21 +02:00
|
|
|
if BLUETOOTH_HCI_HOST
|
2016-11-04 10:47:33 +02:00
|
|
|
config BLUETOOTH_INTERNAL_STORAGE
|
|
|
|
bool "Use an internal persistent storage handler"
|
|
|
|
depends on FILE_SYSTEM
|
2016-12-06 21:46:10 +02:00
|
|
|
depends on PRINTK
|
2016-11-04 10:47:33 +02:00
|
|
|
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.
|
|
|
|
|
2016-05-24 18:17:13 -05:00
|
|
|
config BLUETOOTH_RX_STACK_SIZE
|
2016-11-10 22:01:50 +02:00
|
|
|
int "Size of the receiving thread stack"
|
2016-02-12 12:59:55 +02:00
|
|
|
default 1024
|
|
|
|
range 1024 65536
|
|
|
|
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
|
|
|
|
2016-08-26 12:46:14 +03:00
|
|
|
config BLUETOOTH_PERIPHERAL
|
2015-11-06 21:57:58 +02:00
|
|
|
bool "Peripheral Role support"
|
|
|
|
select BLUETOOTH_CONN
|
2015-11-06 22:22:33 +02:00
|
|
|
help
|
|
|
|
Select this for LE Peripheral role support.
|
2015-11-06 21:57:58 +02:00
|
|
|
|
|
|
|
config BLUETOOTH_CENTRAL
|
|
|
|
bool "Central Role support"
|
|
|
|
select BLUETOOTH_CONN
|
2015-11-06 22:22:33 +02:00
|
|
|
help
|
|
|
|
Select this for LE Central role support.
|
2015-11-06 21:57:58 +02:00
|
|
|
|
|
|
|
config BLUETOOTH_CONN
|
|
|
|
bool
|
|
|
|
|
2015-10-29 14:45:02 +02:00
|
|
|
if BLUETOOTH_CONN
|
2016-05-24 18:17:13 -05:00
|
|
|
config BLUETOOTH_ATT_MTU
|
2015-11-06 12:19:26 +02:00
|
|
|
int "Attribute Protocol (ATT) channel MTU"
|
2016-08-25 13:49:13 +03:00
|
|
|
default 23
|
2015-11-06 13:13:20 +02:00
|
|
|
default 50 if BLUETOOTH_SMP # BLUETOOTH_L2CAP_IN_MTU is big enough
|
|
|
|
# for two complete ACL packets
|
2016-12-22 13:45:41 +02:00
|
|
|
range 23 BLUETOOTH_RX_BUF_LEN
|
2015-11-06 12:19:26 +02:00
|
|
|
help
|
|
|
|
The MTU for the ATT channel. The minimum and default is 23,
|
2016-12-22 13:45:41 +02:00
|
|
|
whereas the maximum is limited by CONFIG_BLUETOOTH_RX_BUF_LEN.
|
2015-10-29 14:45:02 +02:00
|
|
|
|
2016-06-01 12:05:37 +03:00
|
|
|
config BLUETOOTH_ATT_PREPARE_COUNT
|
|
|
|
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.
|
|
|
|
|
2016-08-02 16:23:26 +03:00
|
|
|
config BLUETOOTH_ATT_REQ_COUNT
|
|
|
|
int "Number of ATT request buffers"
|
2016-10-31 12:53:43 +02:00
|
|
|
default BLUETOOTH_MAX_CONN
|
2016-08-02 16:23:26 +03:00
|
|
|
range 1 64
|
|
|
|
help
|
2016-10-31 12:53:43 +02:00
|
|
|
Number of outgoing buffers available for ATT requests, this controls
|
|
|
|
how many requests can be queued without blocking.
|
2016-08-02 16:23:26 +03:00
|
|
|
|
2015-09-09 17:27:16 +02:00
|
|
|
config BLUETOOTH_SMP
|
2015-10-29 13:59:54 +02:00
|
|
|
bool "Security Manager Protocol support"
|
2016-11-09 12:23:21 +02:00
|
|
|
select TINYCRYPT_AES
|
|
|
|
select TINYCRYPT_AES_CMAC
|
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
|
|
|
|
2015-12-08 16:31:45 +01:00
|
|
|
if BLUETOOTH_SMP
|
2016-04-04 12:55:11 +03:00
|
|
|
config BLUETOOTH_PRIVACY
|
|
|
|
bool "Privacy Feature"
|
|
|
|
help
|
|
|
|
Enable local Privacy Feature support. This makes it possible
|
|
|
|
to use Resolvable Private Addresses (RPAs).
|
|
|
|
|
2016-07-19 11:55:21 +02:00
|
|
|
config BLUETOOTH_RPA_TIMEOUT
|
|
|
|
int "Resolvable Private Address timeout"
|
|
|
|
depends on BLUETOOTH_PRIVACY
|
|
|
|
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).
|
|
|
|
|
2015-09-08 14:10:31 +02:00
|
|
|
config BLUETOOTH_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
|
|
|
|
|
|
|
config BLUETOOTH_SMP_SC_ONLY
|
|
|
|
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
|
|
|
|
2016-08-26 12:46:14 +03:00
|
|
|
config BLUETOOTH_USE_DEBUG_KEYS
|
2016-03-01 10:57:53 +01:00
|
|
|
bool "Enable Security Manager Debug Mode"
|
|
|
|
depends on BLUETOOTH_TINYCRYPT_ECC
|
|
|
|
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.
|
|
|
|
|
2015-12-08 16:31:45 +01:00
|
|
|
endif # BLUETOOTH_SMP
|
|
|
|
|
|
|
|
config BLUETOOTH_L2CAP_DYNAMIC_CHANNEL
|
|
|
|
bool "L2CAP Dynamic Channel support"
|
2016-11-03 11:25:23 +02:00
|
|
|
depends on BLUETOOTH_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
|
|
|
|
2016-01-14 10:18:55 -03:00
|
|
|
config BLUETOOTH_GATT_DYNAMIC_DB
|
|
|
|
bool "GATT dynamic database support"
|
|
|
|
help
|
|
|
|
This option enables GATT services to be added dynamically to database.
|
|
|
|
|
2015-09-08 12:47:33 +02:00
|
|
|
config BLUETOOTH_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
|
|
|
|
2016-08-26 12:46:14 +03:00
|
|
|
config BLUETOOTH_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
|
2016-10-04 10:42:08 +03:00
|
|
|
range 1 128
|
2015-05-26 17:20:05 -04:00
|
|
|
help
|
|
|
|
Maximum number of paired Bluetooth devices. The minimum (and
|
|
|
|
default) number is 1.
|
|
|
|
|
2015-11-06 21:49:51 +02:00
|
|
|
endif # BLUETOOTH_CONN
|
|
|
|
|
2016-11-16 16:24:27 +01:00
|
|
|
endif # BLUETOOTH_HCI_HOST
|
|
|
|
|
2016-07-22 09:54:12 +03:00
|
|
|
config BLUETOOTH_TINYCRYPT_ECC
|
|
|
|
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
|
2016-11-16 16:24:27 +01:00
|
|
|
depends on BLUETOOTH_HCI_RAW || BLUETOOTH_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
|
|
|
|
2016-10-26 11:38:36 +03:00
|
|
|
config BLUETOOTH_MAX_CONN
|
|
|
|
int "Maximum number of simultaneous connections"
|
|
|
|
depends on BLUETOOTH_CONN || BLUETOOTH_CONTROLLER
|
|
|
|
default 1
|
|
|
|
range 1 64
|
|
|
|
help
|
|
|
|
Maximum number of simultaneous Bluetooth connections
|
|
|
|
supported. The minimum (and default) number is 1.
|
|
|
|
|
2016-05-24 18:17:13 -05:00
|
|
|
config BLUETOOTH_DEBUG
|
2016-04-20 17:46:09 +03:00
|
|
|
bool
|
|
|
|
|
|
|
|
choice
|
|
|
|
prompt "Bluetooth debug type"
|
|
|
|
depends on BLUETOOTH
|
|
|
|
default BLUETOOTH_DEBUG_NONE
|
|
|
|
|
|
|
|
config BLUETOOTH_DEBUG_NONE
|
|
|
|
bool "No debug log"
|
|
|
|
help
|
|
|
|
Select this to disable all Bluetooth debug logs.
|
|
|
|
|
2016-08-26 12:46:14 +03:00
|
|
|
config BLUETOOTH_DEBUG_LOG
|
2016-04-20 17:46:09 +03:00
|
|
|
bool "Normal printf-style to console"
|
|
|
|
select BLUETOOTH_DEBUG
|
2016-12-09 22:46:23 +02:00
|
|
|
select PRINTK
|
2016-04-27 17:57:03 +03:00
|
|
|
select SYS_LOG
|
2015-11-06 21:49:51 +02:00
|
|
|
help
|
|
|
|
This option enables Bluetooth debug going to standard
|
|
|
|
serial console.
|
|
|
|
|
2016-05-24 18:17:13 -05:00
|
|
|
config BLUETOOTH_DEBUG_MONITOR
|
2016-04-20 17:54:07 +03:00
|
|
|
bool "Monitor protocol over UART"
|
|
|
|
select BLUETOOTH_DEBUG
|
2016-12-09 22:46:23 +02:00
|
|
|
select PRINTK
|
2016-04-20 17:54:07 +03:00
|
|
|
select CONSOLE_HAS_DRIVER
|
|
|
|
help
|
|
|
|
Use a custom logging protocol over the console UART
|
|
|
|
instead of plain-text output. Requires a special application
|
|
|
|
on the host side that can decode this protocol. Currently
|
|
|
|
the 'btmon' tool from BlueZ is capable of doing this.
|
2016-04-20 17:46:09 +03:00
|
|
|
|
2016-08-17 16:33:08 -07:00
|
|
|
If the target board has two or more external UARTs it is
|
2016-04-20 17:54:07 +03:00
|
|
|
possible to keep using UART_CONSOLE together with this option,
|
|
|
|
however if there is only a single external UART then
|
|
|
|
UART_CONSOLE needs to be disabled (in which case printk/printf
|
|
|
|
will get encoded into the monitor protocol).
|
2016-04-20 17:46:09 +03:00
|
|
|
|
2016-04-20 17:54:07 +03:00
|
|
|
endchoice
|
2016-04-20 17:46:09 +03:00
|
|
|
|
2016-05-24 18:17:13 -05:00
|
|
|
config BLUETOOTH_DEBUG_COLOR
|
2015-12-08 12:17:31 +02:00
|
|
|
bool "Use colored logs"
|
2016-04-27 17:57:03 +03:00
|
|
|
depends on BLUETOOTH_DEBUG_LOG
|
|
|
|
select SYS_LOG_SHOW_COLOR
|
2015-12-08 12:17:31 +02:00
|
|
|
default y
|
|
|
|
help
|
|
|
|
Use color in the logs. This requires an ANSI capable terminal.
|
|
|
|
|
2016-05-24 18:17:13 -05:00
|
|
|
config BLUETOOTH_MONITOR_ON_DEV_NAME
|
2016-04-20 17:54:07 +03:00
|
|
|
string "Device Name of Bluetooth monitor logging UART"
|
|
|
|
depends on BLUETOOTH_DEBUG_MONITOR
|
|
|
|
default "UART_0"
|
|
|
|
help
|
|
|
|
This option specifies the name of UART device to be used
|
|
|
|
for the Bluetooth monitor logging.
|
2016-04-20 17:46:09 +03:00
|
|
|
|
|
|
|
if BLUETOOTH_DEBUG
|
2016-08-26 12:46:14 +03:00
|
|
|
config BLUETOOTH_DEBUG_HCI_CORE
|
2015-11-06 21:49:51 +02:00
|
|
|
bool "Bluetooth HCI core debug"
|
2016-11-09 12:23:21 +02:00
|
|
|
depends on BLUETOOTH_HCI_HOST
|
2015-11-06 21:49:51 +02:00
|
|
|
help
|
|
|
|
This option enables debug support for Bluetooth HCI
|
|
|
|
core.
|
|
|
|
|
2016-08-26 12:46:14 +03:00
|
|
|
config BLUETOOTH_DEBUG_CONN
|
2015-10-29 13:59:54 +02:00
|
|
|
bool "Bluetooth connection debug"
|
2015-11-06 21:49:51 +02:00
|
|
|
depends on BLUETOOTH_CONN
|
2015-05-15 18:46:02 -04:00
|
|
|
help
|
|
|
|
This option enables debug support for Bluetooth
|
|
|
|
connection handling.
|
|
|
|
|
2016-08-26 12:46:14 +03:00
|
|
|
config BLUETOOTH_DEBUG_KEYS
|
2015-10-29 13:59:54 +02:00
|
|
|
bool "Bluetooth security keys debug"
|
2016-11-09 12:23:21 +02:00
|
|
|
depends on BLUETOOTH_HCI_HOST
|
2015-11-06 21:28:39 +02:00
|
|
|
depends on BLUETOOTH_SMP
|
2015-06-30 10:47:53 +03:00
|
|
|
help
|
|
|
|
This option enables debug support for the handling of
|
|
|
|
Bluetooth security keys.
|
|
|
|
|
2016-08-26 12:46:14 +03:00
|
|
|
config BLUETOOTH_DEBUG_L2CAP
|
2015-10-29 13:59:54 +02:00
|
|
|
bool "Bluetooth L2CAP debug"
|
2015-11-06 21:49:51 +02:00
|
|
|
depends on BLUETOOTH_CONN
|
2015-05-15 18:46:02 -04:00
|
|
|
help
|
|
|
|
This option enables debug support for the Bluetooth
|
|
|
|
L2ACP layer.
|
|
|
|
|
2016-08-26 12:46:14 +03:00
|
|
|
config BLUETOOTH_DEBUG_SMP
|
2015-10-29 13:59:54 +02:00
|
|
|
bool "Bluetooth Security Manager Protocol (SMP) debug"
|
2016-11-09 12:23:21 +02:00
|
|
|
depends on BLUETOOTH_HCI_HOST
|
2015-11-06 21:28:39 +02:00
|
|
|
depends on BLUETOOTH_SMP
|
2015-05-15 18:46:02 -04:00
|
|
|
help
|
|
|
|
This option enables debug support for the Bluetooth
|
|
|
|
Security Manager Protocol (SMP).
|
|
|
|
|
2016-08-26 12:46:14 +03:00
|
|
|
config BLUETOOTH_SMP_SELFTEST
|
2015-10-29 13:59:54 +02:00
|
|
|
bool "Bluetooth SMP self tests executed on init"
|
2015-08-12 14:55:09 +03:00
|
|
|
depends on BLUETOOTH_DEBUG_SMP
|
|
|
|
help
|
|
|
|
This option enables SMP self-tests executed on startup
|
|
|
|
to verify security and crypto functions.
|
|
|
|
|
2016-09-07 17:30:37 +02:00
|
|
|
config BLUETOOTH_SMP_FORCE_BREDR
|
|
|
|
bool "Force Bluetooth SMP over BR/EDR"
|
|
|
|
depends on BLUETOOTH_DEBUG_SMP
|
|
|
|
help
|
|
|
|
This option enables SMP over BR/EDR even if controller is not
|
|
|
|
supporting BR/EDR Secure Connections. This optino is solely for
|
|
|
|
testing and should never be enabled on production devices.
|
|
|
|
|
2016-08-26 12:46:14 +03:00
|
|
|
config BLUETOOTH_DEBUG_ATT
|
2015-10-29 13:59:54 +02:00
|
|
|
bool "Bluetooth Attribute Protocol (ATT) debug"
|
2015-11-06 21:49:51 +02:00
|
|
|
depends on BLUETOOTH_CONN
|
2015-05-15 18:46:02 -04:00
|
|
|
help
|
|
|
|
This option enables debug support for the Bluetooth
|
|
|
|
Attribute Protocol (ATT).
|
|
|
|
|
2016-08-26 12:46:14 +03:00
|
|
|
config BLUETOOTH_DEBUG_GATT
|
2015-10-29 13:59:54 +02:00
|
|
|
bool "Bluetooth Generic Attribute Profile (GATT) debug"
|
2015-11-06 21:49:51 +02:00
|
|
|
depends on BLUETOOTH_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
|
|
|
|
2016-08-17 23:25:09 +05:30
|
|
|
config BLUETOOTH_DEBUG_RFCOMM
|
|
|
|
bool "Bluetooth RFCOMM debug"
|
|
|
|
depends on BLUETOOTH_RFCOMM
|
|
|
|
help
|
|
|
|
This option enables debug support for the Bluetooth
|
|
|
|
RFCOMM layer.
|
|
|
|
|
2016-08-26 14:47:27 +05:30
|
|
|
config BLUETOOTH_DEBUG_HFP_HF
|
|
|
|
bool "Bluetooth Hands Free Profile (HFP) debug"
|
|
|
|
depends on BLUETOOTH_HFP_HF
|
|
|
|
help
|
|
|
|
This option enables debug support for the Bluetooth
|
|
|
|
Hands Free Profile (HFP).
|
|
|
|
|
2016-09-19 18:19:12 +03:00
|
|
|
config BLUETOOTH_DEBUG_AVDTP
|
|
|
|
bool "Bluetooth AVDTP debug"
|
|
|
|
depends on BLUETOOTH_AVDTP
|
|
|
|
help
|
|
|
|
This option enables debug support for the Bluetooth AVDTP.
|
|
|
|
|
2016-09-15 16:21:57 +05:30
|
|
|
config BLUETOOTH_DEBUG_A2DP
|
|
|
|
bool "Bluetooth A2DP debug"
|
|
|
|
depends on BLUETOOTH_A2DP
|
|
|
|
help
|
|
|
|
This option enables debug support for the Bluetooth
|
|
|
|
A2DP profile.
|
2016-09-15 19:27:25 +05:30
|
|
|
|
|
|
|
config BLUETOOTH_DEBUG_SDP
|
|
|
|
bool "Bluetooth Service Discovery Protocol (SDP) debug"
|
|
|
|
depends on BLUETOOTH_BREDR
|
|
|
|
help
|
|
|
|
This option enables debug support for the Bluetooth
|
|
|
|
Service Discovery Protocol (SDP).
|
|
|
|
|
2015-11-06 21:28:39 +02:00
|
|
|
endif # BLUETOOTH_DEBUG
|
2015-11-06 21:49:51 +02:00
|
|
|
|
2015-11-12 08:04:13 +01:00
|
|
|
config BLUETOOTH_BREDR
|
2015-11-17 10:26:45 +02:00
|
|
|
bool "Bluetooth BR/EDR support [EXPERIMENTAL]"
|
2016-11-09 12:23:21 +02:00
|
|
|
depends on BLUETOOTH_HCI_HOST
|
2016-11-14 18:33:27 +01:00
|
|
|
select BLUETOOTH_PERIPHERAL
|
|
|
|
select BLUETOOTH_CENTRAL
|
|
|
|
select BLUETOOTH_SMP
|
2016-04-25 12:57:11 +02:00
|
|
|
select BLUETOOTH_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
|
|
|
|
2016-08-09 10:06:41 +02:00
|
|
|
if BLUETOOTH_BREDR
|
2016-08-17 23:25:09 +05:30
|
|
|
config BLUETOOTH_RFCOMM
|
|
|
|
bool "Bluetooth RFCOMM protocol support [EXPERIMENTAL]"
|
|
|
|
help
|
|
|
|
This option enables Bluetooth RFCOMM support
|
|
|
|
|
2016-09-23 14:57:25 +02:00
|
|
|
config BLUETOOTH_RFCOMM_L2CAP_MTU
|
|
|
|
int "L2CAP MTU for RFCOMM frames"
|
2016-12-22 13:45:41 +02:00
|
|
|
default BLUETOOTH_RX_BUF_LEN
|
2016-09-23 14:57:25 +02:00
|
|
|
depends on BLUETOOTH_RFCOMM
|
2016-12-22 13:45:41 +02:00
|
|
|
range BLUETOOTH_RX_BUF_LEN 32767
|
2016-09-23 14:57:25 +02:00
|
|
|
help
|
|
|
|
Maximum size of L2CAP PDU for RFCOMM frames.
|
|
|
|
|
2016-08-26 14:47:27 +05:30
|
|
|
config BLUETOOTH_HFP_HF
|
|
|
|
bool "Bluetooth Handsfree profile HF Role support [EXPERIMENTAL]"
|
2016-12-06 21:46:10 +02:00
|
|
|
depends on PRINTK
|
2016-09-23 17:04:16 +02:00
|
|
|
select BLUETOOTH_RFCOMM
|
2016-08-26 14:47:27 +05:30
|
|
|
help
|
|
|
|
This option enables Bluetooth HF support
|
|
|
|
|
2016-09-13 15:14:21 +05:30
|
|
|
config BLUETOOTH_AVDTP
|
|
|
|
bool "Bluetooth AVDTP protocol support [EXPERIMENTAL]"
|
|
|
|
help
|
|
|
|
This option enables Bluetooth AVDTP support
|
|
|
|
|
2016-09-15 16:21:57 +05:30
|
|
|
config BLUETOOTH_A2DP
|
|
|
|
bool "Bluetooth A2DP Profile [EXPERIMENTAL]"
|
|
|
|
select BLUETOOTH_AVDTP
|
|
|
|
help
|
|
|
|
This option enables the A2DP profile
|
|
|
|
|
2016-10-12 09:39:19 +05:30
|
|
|
config BLUETOOTH_PAGE_TIMEOUT
|
|
|
|
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.
|
|
|
|
|
2016-08-09 10:06:41 +02:00
|
|
|
config BLUETOOTH_BREDR_NAME
|
|
|
|
string "Bluetooth BR/EDR device name"
|
|
|
|
default "Zephyr"
|
|
|
|
help
|
|
|
|
Bluetooth BR/EDR name. Name can be up to 248 bytes long (excluding
|
|
|
|
NULL termination). Can be empty string.
|
|
|
|
endif # BLUETOOTH_BREDR
|