Bluetooth: Add option for disabling SMP support

This allows to not compile SMP support for devices that don't
require pairing. It is required to support SMP channel and reply
with error for any command received even if pairing is not supported.
To handle this cleanly a null smp implementation is used that case.

Change-Id: I656a52dac882839db904eee65f25a4e29ea2d8c2
Signed-off-by: Szymon Janc <ext.szymon.janc@tieto.com>
This commit is contained in:
Szymon Janc 2015-09-09 17:27:16 +02:00 committed by Anas Nashif
commit 9c2ad108b8
13 changed files with 191 additions and 25 deletions

View file

@ -54,10 +54,16 @@ config BLUETOOTH_CENTRAL
select BLUETOOTH_CONN
if BLUETOOTH_PERIPHERAL || BLUETOOTH_CENTRAL
config BLUETOOTH_SMP
bool
prompt "Security Manager Protocol support"
default n
config BLUETOOTH_SIGNING
bool
prompt "Data signing support"
default n
depends on BLUETOOTH_SMP
help
This option enables data signing which is used for transferring
authenticated data in an unencrypted connection.