X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=net%2Fbluetooth%2Fsmp.h;h=60c5b73fcb4b26e3aab32604b58809ca30a4e6f4;hb=533cf7aef25bfe5da72170466582bcd0db5189c0;hp=3296bf42ae80d627c478c5199e167429ca16079b;hpb=8328509c4bdf28b83fd7104ca9da01bf3b58c7b0;p=firefly-linux-kernel-4.4.55.git 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 */