2015-05-20 11:40:39 -05:00
|
|
|
# Kconfig - Bluetooth LE stack configuration options
|
|
|
|
|
|
|
|
#
|
|
|
|
# Copyright (c) 2015 Intel Corporation
|
|
|
|
#
|
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
|
|
|
|
2015-09-03 10:26:04 +02:00
|
|
|
menuconfig BLUETOOTH
|
2015-10-29 13:59:54 +02:00
|
|
|
bool "Bluetooth LE support"
|
2015-05-12 13:20:42 -05:00
|
|
|
default n
|
2015-07-17 13:11:53 +02:00
|
|
|
select NANO_TIMEOUTS
|
2015-10-07 18:32:54 +03:00
|
|
|
select NET_BUF
|
2015-05-12 13:20:42 -05:00
|
|
|
help
|
|
|
|
This option enables Bluetooth Low Energy support.
|
|
|
|
|
2015-09-03 10:26:04 +02:00
|
|
|
if BLUETOOTH
|
2015-09-07 18:25:59 +02:00
|
|
|
config BLUETOOTH_CONN
|
|
|
|
bool
|
|
|
|
default n
|
|
|
|
|
|
|
|
config BLUETOOTH_PERIPHERAL
|
|
|
|
bool "Peripheral Role support"
|
|
|
|
default n
|
|
|
|
select BLUETOOTH_CONN
|
|
|
|
|
|
|
|
config BLUETOOTH_CENTRAL
|
|
|
|
bool "Central Role support"
|
|
|
|
default n
|
|
|
|
select BLUETOOTH_CONN
|
|
|
|
|
2015-10-29 10:02:23 +01:00
|
|
|
config BLUETOOTH_DEBUG
|
2015-10-29 13:59:54 +02:00
|
|
|
bool "Bluetooth LE debug support"
|
2015-10-29 10:02:23 +01:00
|
|
|
select STDOUT_CONSOLE
|
|
|
|
default n
|
|
|
|
help
|
|
|
|
This option enables Bluetooth debug going to standard
|
|
|
|
serial console.
|
|
|
|
|
|
|
|
config BLUETOOTH_DEBUG_HCI_CORE
|
2015-10-29 13:59:54 +02:00
|
|
|
bool "Bluetooth HCI core debug"
|
2015-10-29 10:02:23 +01:00
|
|
|
depends on BLUETOOTH_DEBUG
|
|
|
|
default n
|
|
|
|
help
|
|
|
|
This option enables debug support for Bluetooth HCI
|
|
|
|
core.
|
|
|
|
|
2015-10-29 16:58:18 +02:00
|
|
|
config BLUETOOTH_HCI_CMD_COUNT
|
|
|
|
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
|
|
|
|
2015-11-06 12:44:40 +02:00
|
|
|
config BLUETOOTH_MAX_CMD_LEN
|
|
|
|
int "Maximum supported HCI command length"
|
|
|
|
default 64
|
|
|
|
range 64 255
|
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
|
|
|
|
|
|
|
config BLUETOOTH_HCI_EVT_COUNT
|
|
|
|
int "Number of HCI event buffers"
|
|
|
|
default 6
|
|
|
|
range 2 64
|
|
|
|
help
|
|
|
|
Number of buffers available for HCI events. This number should
|
|
|
|
ideally be at least as large as BLUETOOTH_ACL_OUT_COUNT to make
|
|
|
|
sure we've got enough buffers to handle bursts of Number of
|
|
|
|
Completed Packets HCI events.
|
|
|
|
|
2015-11-06 12:44:40 +02:00
|
|
|
config BLUETOOTH_MAX_EVT_LEN
|
|
|
|
int "Maximum supported HCI event length"
|
|
|
|
default 68
|
|
|
|
range 68 255
|
2015-10-29 16:58:18 +02:00
|
|
|
help
|
2015-11-06 12:44:40 +02:00
|
|
|
Maximum size of each HCI event buffer. E.g. one big event
|
|
|
|
for LE is the Command Complete for Read Local Supported
|
|
|
|
Commands. It is a 3 byte Command Complete header + 65 byte
|
|
|
|
return parameters = 68 bytes in total.
|
2015-10-29 14:45:02 +02:00
|
|
|
|
|
|
|
if BLUETOOTH_CONN
|
|
|
|
config BLUETOOTH_ACL_IN_COUNT
|
|
|
|
int "Number of incoming ACL data buffers"
|
2015-10-29 16:58:18 +02:00
|
|
|
default 5
|
2015-11-03 11:31:01 +02:00
|
|
|
range 2 64
|
2015-10-29 14:45:02 +02:00
|
|
|
help
|
|
|
|
Number of buffers available for incoming ACL data.
|
|
|
|
|
2015-11-06 12:19:26 +02:00
|
|
|
config BLUETOOTH_L2CAP_IN_MTU
|
|
|
|
int "Maximum supported L2CAP MTU for incoming data"
|
|
|
|
default 65 if BLUETOOTH_SMP
|
|
|
|
default 23 if !BLUETOOTH_SMP
|
|
|
|
range 65 1300 if BLUETOOTH_SMP
|
|
|
|
range 23 1300 if !BLUETOOTH_SMP
|
2015-10-29 14:45:02 +02:00
|
|
|
help
|
2015-11-06 12:19:26 +02:00
|
|
|
Maximum size of each incoming L2CAP PDU.
|
|
|
|
|
|
|
|
config BLUETOOTH_ATT_MTU
|
|
|
|
int "Attribute Protocol (ATT) channel MTU"
|
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
|
2015-11-06 12:19:26 +02:00
|
|
|
default 23
|
|
|
|
range 23 BLUETOOTH_L2CAP_IN_MTU
|
|
|
|
help
|
|
|
|
The MTU for the ATT channel. The minimum and default is 23,
|
|
|
|
whereas the maximum is limited by CONFIG_BLUETOOTH_L2CAP_IN_MTU.
|
2015-10-29 14:45:02 +02: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"
|
2015-09-09 17:27:16 +02:00
|
|
|
default n
|
|
|
|
|
2015-10-08 13:45:40 +03:00
|
|
|
config BLUETOOTH_L2CAP_DYNAMIC_CHANNEL
|
2015-10-29 13:59:54 +02:00
|
|
|
bool "L2CAP Dynamic Channel support"
|
2015-10-08 13:45:40 +03:00
|
|
|
default n
|
|
|
|
|
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
|
|
|
default n
|
2015-09-09 17:27:16 +02:00
|
|
|
depends on BLUETOOTH_SMP
|
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-09-08 12:47:33 +02:00
|
|
|
config BLUETOOTH_GATT_CLIENT
|
2015-10-29 13:59:54 +02:00
|
|
|
bool "GATT client support"
|
2015-09-08 12:47:33 +02:00
|
|
|
default n
|
|
|
|
|
2015-05-26 17:20:05 -04:00
|
|
|
config BLUETOOTH_MAX_CONN
|
2015-10-29 13:59:54 +02:00
|
|
|
int "Maximum number of simultaneous connections"
|
2015-05-26 17:20:05 -04:00
|
|
|
default 1
|
|
|
|
range 1 16
|
|
|
|
help
|
|
|
|
Maximum number of simultaneous Bluetooth connections
|
|
|
|
supported. The minimum (and default) number is 1.
|
|
|
|
|
|
|
|
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
|
|
|
|
range 1 32
|
|
|
|
help
|
|
|
|
Maximum number of paired Bluetooth devices. The minimum (and
|
|
|
|
default) number is 1.
|
|
|
|
|
2015-11-06 21:28:39 +02:00
|
|
|
if BLUETOOTH_DEBUG
|
2015-05-15 18:46:02 -04:00
|
|
|
config BLUETOOTH_DEBUG_CONN
|
2015-10-29 13:59:54 +02:00
|
|
|
bool "Bluetooth connection debug"
|
2015-05-15 18:46:02 -04:00
|
|
|
default n
|
|
|
|
help
|
|
|
|
This option enables debug support for Bluetooth
|
|
|
|
connection handling.
|
|
|
|
|
2015-06-30 10:47:53 +03:00
|
|
|
config BLUETOOTH_DEBUG_KEYS
|
2015-10-29 13:59:54 +02:00
|
|
|
bool "Bluetooth security keys debug"
|
2015-11-06 21:28:39 +02:00
|
|
|
depends on BLUETOOTH_SMP
|
2015-06-30 10:47:53 +03:00
|
|
|
default n
|
|
|
|
help
|
|
|
|
This option enables debug support for the handling of
|
|
|
|
Bluetooth security keys.
|
|
|
|
|
2015-05-15 18:46:02 -04:00
|
|
|
config BLUETOOTH_DEBUG_L2CAP
|
2015-10-29 13:59:54 +02:00
|
|
|
bool "Bluetooth L2CAP debug"
|
2015-05-15 18:46:02 -04:00
|
|
|
default n
|
|
|
|
help
|
|
|
|
This option enables debug support for the Bluetooth
|
|
|
|
L2ACP layer.
|
|
|
|
|
|
|
|
config BLUETOOTH_DEBUG_SMP
|
2015-10-29 13:59:54 +02:00
|
|
|
bool "Bluetooth Security Manager Protocol (SMP) debug"
|
2015-11-06 21:28:39 +02:00
|
|
|
depends on BLUETOOTH_SMP
|
2015-05-15 18:46:02 -04:00
|
|
|
default n
|
|
|
|
help
|
|
|
|
This option enables debug support for the Bluetooth
|
|
|
|
Security Manager Protocol (SMP).
|
|
|
|
|
2015-08-12 14:55:09 +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
|
|
|
|
default n
|
|
|
|
help
|
|
|
|
This option enables SMP self-tests executed on startup
|
|
|
|
to verify security and crypto functions.
|
|
|
|
|
2015-05-15 18:46:02 -04:00
|
|
|
config BLUETOOTH_DEBUG_ATT
|
2015-10-29 13:59:54 +02:00
|
|
|
bool "Bluetooth Attribute Protocol (ATT) debug"
|
2015-05-15 18:46:02 -04:00
|
|
|
default n
|
|
|
|
help
|
|
|
|
This option enables debug support for the Bluetooth
|
|
|
|
Attribute Protocol (ATT).
|
|
|
|
|
2015-05-26 17:20:05 -04:00
|
|
|
config BLUETOOTH_DEBUG_GATT
|
2015-10-29 13:59:54 +02:00
|
|
|
bool "Bluetooth Generic Attribute Profile (GATT) debug"
|
2015-05-26 17:20:05 -04:00
|
|
|
default n
|
|
|
|
help
|
|
|
|
This option enables debug support for the Bluetooth
|
|
|
|
Generic Attribute Profile (GATT).
|
2015-11-06 21:28:39 +02:00
|
|
|
endif # BLUETOOTH_DEBUG
|
|
|
|
endif # BLUETOOTH_CONN
|
2015-10-29 13:59:54 +02:00
|
|
|
endif # BLUETOOTH
|