Hi, Here's yet another attempt at introducing the SMP self-tests. The objection to the separate module approach was the need to always export the low-level SMP crypto functions. This set of patches takes a different approach by triggering the tests through debugfs. This way only two new bt_smp_init & bt_smp_exit function need to be exposed from smp.c. And before anyone asks, the extra bt_ prefix is because there's otherwise a conflict with another already existing "smp_init" function in the kernel. Once enabled the new tests can be run by issuing the following command: cat /sys/kernel/debug/bluetooth/smp_selftest Johan ---------------------------------------------------------------- Johan Hedberg (5): Bluetooth: Fix const declarations for smp_f5 and smp_f6 Bluetooth: Add skeleton for debugfs-based SMP self-tests Bluetooth: Add SMP self-tests for legacy crypto functions Bluetooth: Add SMP self-tests for SC crypto functions Bluetooth: Add SMP self-tests for ECDH functionality include/net/bluetooth/bluetooth.h | 3 + net/bluetooth/Kconfig | 9 + net/bluetooth/af_bluetooth.c | 4 + net/bluetooth/smp.c | 520 +++++++++++++++++++++++++++++++++++++- 4 files changed, 533 insertions(+), 3 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html