aboutsummaryrefslogtreecommitdiffstats
path: root/net/bluetooth/hci_debugfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/bluetooth/hci_debugfs.c')
-rw-r--r--net/bluetooth/hci_debugfs.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/net/bluetooth/hci_debugfs.c b/net/bluetooth/hci_debugfs.c
index a7a0db03b0b8..ee33ce88d3d8 100644
--- a/net/bluetooth/hci_debugfs.c
+++ b/net/bluetooth/hci_debugfs.c
@@ -1062,3 +1062,15 @@ void hci_debugfs_create_le(struct hci_dev *hdev)
1062 debugfs_create_u16("discov_interleaved_timeout", 0644, hdev->debugfs, 1062 debugfs_create_u16("discov_interleaved_timeout", 0644, hdev->debugfs,
1063 &hdev->discov_interleaved_timeout); 1063 &hdev->discov_interleaved_timeout);
1064} 1064}
1065
1066void hci_debugfs_create_conn(struct hci_conn *conn)
1067{
1068 struct hci_dev *hdev = conn->hdev;
1069 char name[6];
1070
1071 if (IS_ERR_OR_NULL(hdev->debugfs))
1072 return;
1073
1074 snprintf(name, sizeof(name), "%u", conn->handle);
1075 conn->debugfs = debugfs_create_dir(name, hdev->debugfs);
1076}