diff options
Diffstat (limited to 'net/bluetooth/hci_conn.c')
-rw-r--r-- | net/bluetooth/hci_conn.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/bluetooth/hci_conn.c b/net/bluetooth/hci_conn.c index 5157a0990732..dd2df20b0f7d 100644 --- a/net/bluetooth/hci_conn.c +++ b/net/bluetooth/hci_conn.c | |||
@@ -122,7 +122,7 @@ static void hci_reject_sco(struct hci_conn *conn) | |||
122 | hci_send_cmd(conn->hdev, HCI_OP_REJECT_SYNC_CONN_REQ, sizeof(cp), &cp); | 122 | hci_send_cmd(conn->hdev, HCI_OP_REJECT_SYNC_CONN_REQ, sizeof(cp), &cp); |
123 | } | 123 | } |
124 | 124 | ||
125 | void hci_disconnect(struct hci_conn *conn, __u8 reason) | 125 | int hci_disconnect(struct hci_conn *conn, __u8 reason) |
126 | { | 126 | { |
127 | struct hci_cp_disconnect cp; | 127 | struct hci_cp_disconnect cp; |
128 | 128 | ||
@@ -132,7 +132,7 @@ void hci_disconnect(struct hci_conn *conn, __u8 reason) | |||
132 | 132 | ||
133 | cp.handle = cpu_to_le16(conn->handle); | 133 | cp.handle = cpu_to_le16(conn->handle); |
134 | cp.reason = reason; | 134 | cp.reason = reason; |
135 | hci_send_cmd(conn->hdev, HCI_OP_DISCONNECT, sizeof(cp), &cp); | 135 | return hci_send_cmd(conn->hdev, HCI_OP_DISCONNECT, sizeof(cp), &cp); |
136 | } | 136 | } |
137 | 137 | ||
138 | static void hci_amp_disconn(struct hci_conn *conn) | 138 | static void hci_amp_disconn(struct hci_conn *conn) |