summaryrefslogtreecommitdiffstats
path: root/net/bluetooth/hci_conn.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2014-12-20 17:13:41 +0100
committerJohan Hedberg <johan.hedberg@intel.com>2014-12-20 19:54:24 +0200
commit23b9ceb74f8e46bddd61a1e2afd9317221be74b7 (patch)
treea67aff498795bec4d8c9875954c4215871cb3b9b /net/bluetooth/hci_conn.c
parenta8e1bfaa55cf8ac4e419a09bdda5bb45bcd8f985 (diff)
downloadop-kernel-dev-23b9ceb74f8e46bddd61a1e2afd9317221be74b7.zip
op-kernel-dev-23b9ceb74f8e46bddd61a1e2afd9317221be74b7.tar.gz
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.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/bluetooth/hci_conn.c b/net/bluetooth/hci_conn.c
index 4405fb3..75240aa 100644
--- a/net/bluetooth/hci_conn.c
+++ b/net/bluetooth/hci_conn.c
@@ -25,6 +25,7 @@
/* Bluetooth HCI connection handling. */
#include <linux/export.h>
+#include <linux/debugfs.h>
#include <net/bluetooth/bluetooth.h>
#include <net/bluetooth/hci_core.h>
@@ -547,6 +548,8 @@ int hci_conn_del(struct hci_conn *conn)
hci_conn_del_sysfs(conn);
+ debugfs_remove_recursive(conn->debugfs);
+
if (test_bit(HCI_CONN_PARAM_REMOVAL_PEND, &conn->flags))
hci_conn_params_del(conn->hdev, &conn->dst, conn->dst_type);
OpenPOWER on IntegriCloud