|
@@ -31,6 +31,7 @@
|
|
|
#include <net/bluetooth/mgmt.h>
|
|
|
|
|
|
#include "hci_request.h"
|
|
|
+#include "hci_debugfs.h"
|
|
|
#include "a2mp.h"
|
|
|
#include "amp.h"
|
|
|
#include "smp.h"
|
|
@@ -2162,6 +2163,7 @@ static void hci_conn_complete_evt(struct hci_dev *hdev, struct sk_buff *skb)
|
|
|
} else
|
|
|
conn->state = BT_CONNECTED;
|
|
|
|
|
|
+ hci_debugfs_create_conn(conn);
|
|
|
hci_conn_add_sysfs(conn);
|
|
|
|
|
|
if (test_bit(HCI_AUTH, &hdev->flags))
|
|
@@ -3638,6 +3640,7 @@ static void hci_sync_conn_complete_evt(struct hci_dev *hdev,
|
|
|
conn->handle = __le16_to_cpu(ev->handle);
|
|
|
conn->state = BT_CONNECTED;
|
|
|
|
|
|
+ hci_debugfs_create_conn(conn);
|
|
|
hci_conn_add_sysfs(conn);
|
|
|
break;
|
|
|
|
|
@@ -4178,6 +4181,7 @@ static void hci_phy_link_complete_evt(struct hci_dev *hdev,
|
|
|
hcon->disc_timeout = HCI_DISCONN_TIMEOUT;
|
|
|
hci_conn_drop(hcon);
|
|
|
|
|
|
+ hci_debugfs_create_conn(hcon);
|
|
|
hci_conn_add_sysfs(hcon);
|
|
|
|
|
|
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)
|
|
|
conn->le_conn_latency = le16_to_cpu(ev->latency);
|
|
|
conn->le_supv_timeout = le16_to_cpu(ev->supervision_timeout);
|
|
|
|
|
|
+ hci_debugfs_create_conn(conn);
|
|
|
hci_conn_add_sysfs(conn);
|
|
|
|
|
|
hci_proto_connect_cfm(conn, ev->status);
|