Skip to content

Bluetooth: Add self-tests through a dedicated module

Johan Hedberg linux-bluetooth 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6Bluetooth: Export SMP crypto functions for self-test modulenet/bluetooth/smp.c net/bluetooth/smp.h+79 -500 replies
2/6Bluetooth: Export ECDH functions for self-test modulenet/bluetooth/ecc.c+2 -00 replies
3/6Bluetooth: Add skeleton for self-test modulenet/bluetooth/Kconfig net/bluetooth/Makefile net/bluetooth/selftest.c+65 -61 reply
4/6Bluetooth: Add legacy SMP self-testsnet/bluetooth/selftest.c+121 -00 replies
5/6Bluetooth: Add LE SC SMP self-testsnet/bluetooth/selftest.c+167 -00 replies
6/6Bluetooth: Add ECDH self-testsnet/bluetooth/selftest.c+156 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/6] Bluetooth: Add self-tests through a dedicated module

Hi,

This patch set re-introduces the self-tests that were already earlier attempted to be merge. The failure with the first attempt was that the tests rely on crypto subsystem features which may not be available when the Bluetooth subsystem gets loaded (using a subsystem priority instead of normal module prioirity). By having the tests in a separate module this prioirty conflict doesn't occur.

----------------------------------------------------------------
Johan Hedberg (6):
Bluetooth: Export SMP crypto functions for self-test module
Bluetooth: Export ECDH functions for self-test module
Bluetooth: Add skeleton for self-test module
Bluetooth: Add legacy SMP self-tests
Bluetooth: Add LE SC SMP self-tests
Bluetooth: Add ECDH self-tests

 net/bluetooth/Kconfig    |   6 +
 net/bluetooth/Makefile   |  15 +-
 net/bluetooth/ecc.c      |   2 +
 net/bluetooth/selftest.c | 494 ++++++++++++++++++++++++++++++++++++++++++++++
 net/bluetooth/smp.c      | 107 +++++-----
 net/bluetooth/smp.h      |  22 +++
 6 files changed, 590 insertions(+), 56 deletions(-)
 create mode 100644 net/bluetooth/selftest.c