Bluetooth: Add skeleton for SMP self-tests
authorJohan Hedberg <johan.hedberg@intel.com>
Sat, 25 Oct 2014 19:15:38 +0000 (21:15 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Sat, 25 Oct 2014 19:33:56 +0000 (21:33 +0200)
This patch adds a basic skeleton for SMP self-tests. The tests are put
behind a new configuration option since running them will slow down the
boot process. For now there are no actual tests defined but those will
come in a subsequent patch.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/Kconfig
net/bluetooth/smp.c

index 600fb29..2675b41 100644 (file)
@@ -45,6 +45,12 @@ config BT_6LOWPAN
        help
          IPv6 compression over Bluetooth Low Energy.
 
+config BT_SELFTEST
+       bool "Run self-tests on boot"
+       depends on BT && DEBUG_KERNEL
+       help
+         Run self-tests during boot. Currently limited to SMP.
+
 source "net/bluetooth/rfcomm/Kconfig"
 
 source "net/bluetooth/bnep/Kconfig"
Simple merge