diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2014-12-20 11:13:41 -0500 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2014-12-20 12:54:24 -0500 |
commit | 23b9ceb74f8e46bddd61a1e2afd9317221be74b7 (patch) | |
tree | a67aff498795bec4d8c9875954c4215871cb3b9b /net/bluetooth/hci_conn.c | |
parent | a8e1bfaa55cf8ac4e419a09bdda5bb45bcd8f985 (diff) |
Bluetooth: Create debugfs directory for each connection handle
For every internal representation of a Bluetooth connection which is
identified by hci_conn, create a debugfs directory with the handle
number as directory name.
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Diffstat (limited to 'net/bluetooth/hci_conn.c')
-rw-r--r-- | net/bluetooth/hci_conn.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/bluetooth/hci_conn.c b/net/bluetooth/hci_conn.c index 4405fb352c70..75240aaca101 100644 --- a/net/bluetooth/hci_conn.c +++ b/net/bluetooth/hci_conn.c | |||
@@ -25,6 +25,7 @@ | |||
25 | /* Bluetooth HCI connection handling. */ | 25 | /* Bluetooth HCI connection handling. */ |
26 | 26 | ||
27 | #include <linux/export.h> | 27 | #include <linux/export.h> |
28 | #include <linux/debugfs.h> | ||
28 | 29 | ||
29 | #include <net/bluetooth/bluetooth.h> | 30 | #include <net/bluetooth/bluetooth.h> |
30 | #include <net/bluetooth/hci_core.h> | 31 | #include <net/bluetooth/hci_core.h> |
@@ -547,6 +548,8 @@ int hci_conn_del(struct hci_conn *conn) | |||
547 | 548 | ||
548 | hci_conn_del_sysfs(conn); | 549 | hci_conn_del_sysfs(conn); |
549 | 550 | ||
551 | debugfs_remove_recursive(conn->debugfs); | ||
552 | |||
550 | if (test_bit(HCI_CONN_PARAM_REMOVAL_PEND, &conn->flags)) | 553 | if (test_bit(HCI_CONN_PARAM_REMOVAL_PEND, &conn->flags)) |
551 | hci_conn_params_del(conn->hdev, &conn->dst, conn->dst_type); | 554 | hci_conn_params_del(conn->hdev, &conn->dst, conn->dst_type); |
552 | 555 | ||