aboutsummaryrefslogtreecommitdiffstats
path: root/net/bluetooth/sco.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/bluetooth/sco.c')
-rw-r--r--net/bluetooth/sco.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/net/bluetooth/sco.c b/net/bluetooth/sco.c
index 3c2e36f94b65..b94c3151896e 100644
--- a/net/bluetooth/sco.c
+++ b/net/bluetooth/sco.c
@@ -1100,8 +1100,11 @@ static void sco_connect_cfm(struct hci_conn *hcon, __u8 status)
1100 sco_conn_del(hcon, bt_to_errno(status)); 1100 sco_conn_del(hcon, bt_to_errno(status));
1101} 1101}
1102 1102
1103void sco_disconn_cfm(struct hci_conn *hcon, __u8 reason) 1103static void sco_disconn_cfm(struct hci_conn *hcon, __u8 reason)
1104{ 1104{
1105 if (hcon->type != SCO_LINK && hcon->type != ESCO_LINK)
1106 return;
1107
1105 BT_DBG("hcon %p reason %d", hcon, reason); 1108 BT_DBG("hcon %p reason %d", hcon, reason);
1106 1109
1107 sco_conn_del(hcon, bt_to_errno(reason)); 1110 sco_conn_del(hcon, bt_to_errno(reason));
@@ -1129,6 +1132,7 @@ drop:
1129static struct hci_cb sco_cb = { 1132static struct hci_cb sco_cb = {
1130 .name = "SCO", 1133 .name = "SCO",
1131 .connect_cfm = sco_connect_cfm, 1134 .connect_cfm = sco_connect_cfm,
1135 .disconn_cfm = sco_disconn_cfm,
1132}; 1136};
1133 1137
1134static int sco_debugfs_show(struct seq_file *f, void *p) 1138static int sco_debugfs_show(struct seq_file *f, void *p)