diff options
author | Johan Hedberg | 2014-12-30 09:50:39 +0200 |
---|---|---|
committer | Marcel Holtmann | 2014-12-30 08:54:33 +0100 |
commit | 0a2b0f0452e2499a1037305fcfc314d0cdeb5260 (patch) | |
tree | 40be3edc04c30fe22299dd40bc95dad9036756fb /net/bluetooth/smp.h | |
parent | 0b6415b65234ff723d32fd7dcdd917ba7ad5fe86 (diff) |
Bluetooth: Add skeleton for SMP self-tests
This patch adds the initial skeleton and kernel config option for SMP
self-tests.
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/bluetooth/smp.h')
-rw-r--r-- | net/bluetooth/smp.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/net/bluetooth/smp.h b/net/bluetooth/smp.h index 3296bf42ae80..60c5b73fcb4b 100644 --- a/net/bluetooth/smp.h +++ b/net/bluetooth/smp.h @@ -192,4 +192,17 @@ int smp_generate_rpa(struct hci_dev *hdev, const u8 irk[16], bdaddr_t *rpa); int smp_register(struct hci_dev *hdev); void smp_unregister(struct hci_dev *hdev); +#if IS_ENABLED(CONFIG_BT_SELFTEST_SMP) + +int bt_selftest_smp(void); + +#else + +static inline int bt_selftest_smp(void) +{ + return 0; +} + +#endif + #endif /* __SMP_H */ |