aboutsummaryrefslogtreecommitdiffstats
path: root/net/bluetooth/hci_event.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/bluetooth/hci_event.c')
-rw-r--r--net/bluetooth/hci_event.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/net/bluetooth/hci_event.c b/net/bluetooth/hci_event.c
index a3055e90a5bb..eed44c643c0c 100644
--- a/net/bluetooth/hci_event.c
+++ b/net/bluetooth/hci_event.c
@@ -31,6 +31,7 @@
31#include <net/bluetooth/mgmt.h> 31#include <net/bluetooth/mgmt.h>
32 32
33#include "hci_request.h" 33#include "hci_request.h"
34#include "hci_debugfs.h"
34#include "a2mp.h" 35#include "a2mp.h"
35#include "amp.h" 36#include "amp.h"
36#include "smp.h" 37#include "smp.h"
@@ -2162,6 +2163,7 @@ static void hci_conn_complete_evt(struct hci_dev *hdev, struct sk_buff *skb)
2162 } else 2163 } else
2163 conn->state = BT_CONNECTED; 2164 conn->state = BT_CONNECTED;
2164 2165
2166 hci_debugfs_create_conn(conn);
2165 hci_conn_add_sysfs(conn); 2167 hci_conn_add_sysfs(conn);
2166 2168
2167 if (test_bit(HCI_AUTH, &hdev->flags)) 2169 if (test_bit(HCI_AUTH, &hdev->flags))
@@ -3638,6 +3640,7 @@ static void hci_sync_conn_complete_evt(struct hci_dev *hdev,
3638 conn->handle = __le16_to_cpu(ev->handle); 3640 conn->handle = __le16_to_cpu(ev->handle);
3639 conn->state = BT_CONNECTED; 3641 conn->state = BT_CONNECTED;
3640 3642
3643 hci_debugfs_create_conn(conn);
3641 hci_conn_add_sysfs(conn); 3644 hci_conn_add_sysfs(conn);
3642 break; 3645 break;
3643 3646
@@ -4178,6 +4181,7 @@ static void hci_phy_link_complete_evt(struct hci_dev *hdev,
4178 hcon->disc_timeout = HCI_DISCONN_TIMEOUT; 4181 hcon->disc_timeout = HCI_DISCONN_TIMEOUT;
4179 hci_conn_drop(hcon); 4182 hci_conn_drop(hcon);
4180 4183
4184 hci_debugfs_create_conn(hcon);
4181 hci_conn_add_sysfs(hcon); 4185 hci_conn_add_sysfs(hcon);
4182 4186
4183 amp_physical_cfm(bredr_hcon, hcon); 4187 amp_physical_cfm(bredr_hcon, hcon);
@@ -4384,6 +4388,7 @@ static void hci_le_conn_complete_evt(struct hci_dev *hdev, struct sk_buff *skb)
4384 conn->le_conn_latency = le16_to_cpu(ev->latency); 4388 conn->le_conn_latency = le16_to_cpu(ev->latency);
4385 conn->le_supv_timeout = le16_to_cpu(ev->supervision_timeout); 4389 conn->le_supv_timeout = le16_to_cpu(ev->supervision_timeout);
4386 4390
4391 hci_debugfs_create_conn(conn);
4387 hci_conn_add_sysfs(conn); 4392 hci_conn_add_sysfs(conn);
4388 4393
4389 hci_proto_connect_cfm(conn, ev->status); 4394 hci_proto_connect_cfm(conn, ev->status);