Bluetooth: Add support for self testing framework
This add support for the Bluetooth self testing framework that allows running certain test cases of sample data to ensure correctness of its basic functionality. With this patch only the basic framework will be added. It contains the build magic that allows running this at module loading time or at late_initcall stage when built into the kernel image. Signed-off-by: Marcel Holtmann <marcel@holtmann.org> Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
This commit is contained in:
committed by
Johan Hedberg
parent
4da50de895
commit
ee485290c6
@@ -31,6 +31,8 @@
|
||||
#include <net/bluetooth/bluetooth.h>
|
||||
#include <linux/proc_fs.h>
|
||||
|
||||
#include "selftest.h"
|
||||
|
||||
#define VERSION "2.20"
|
||||
|
||||
/* Bluetooth sockets */
|
||||
@@ -716,6 +718,10 @@ static int __init bt_init(void)
|
||||
|
||||
BT_INFO("Core ver %s", VERSION);
|
||||
|
||||
err = bt_selftest();
|
||||
if (err < 0)
|
||||
return err;
|
||||
|
||||
bt_debugfs = debugfs_create_dir("bluetooth", NULL);
|
||||
|
||||
err = bt_sysfs_init();
|
||||
|
||||
Reference in New Issue
Block a user