Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 247624
b: refs/heads/master
c: 83bc71b
h: refs/heads/master
v: v3
  • Loading branch information
Vinicius Costa Gomes authored and Gustavo F. Padovan committed May 11, 2011
1 parent 5ab61e4 commit 3192e0c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b3b1b061583ba4909b59a2f736825d86495fe956
refs/heads/master: 83bc71b4102d2a288edaf9ee398b330b88a88086
5 changes: 4 additions & 1 deletion trunk/net/bluetooth/hci_event.c
Original file line number Diff line number Diff line change
Expand Up @@ -1440,7 +1440,7 @@ static inline void hci_disconn_complete_evt(struct hci_dev *hdev, struct sk_buff

conn->state = BT_CLOSED;

if (conn->type == ACL_LINK)
if (conn->type == ACL_LINK || conn->type == LE_LINK)
mgmt_disconnected(hdev->id, &conn->dst);

hci_proto_disconn_cfm(conn, ev->reason);
Expand Down Expand Up @@ -2659,12 +2659,15 @@ static inline void hci_le_conn_complete_evt(struct hci_dev *hdev, struct sk_buff
}

if (ev->status) {
mgmt_connect_failed(hdev->id, &ev->bdaddr, ev->status);
hci_proto_connect_cfm(conn, ev->status);
conn->state = BT_CLOSED;
hci_conn_del(conn);
goto unlock;
}

mgmt_connected(hdev->id, &ev->bdaddr);

conn->handle = __le16_to_cpu(ev->handle);
conn->state = BT_CONNECTED;

Expand Down

0 comments on commit 3192e0c

Please sign in to comment.