Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 328181
b: refs/heads/master
c: 4cd2d98
h: refs/heads/master
i:
  328179: 833d5fd
v: v3
  • Loading branch information
Vinicius Costa Gomes authored and Gustavo Padovan committed Aug 15, 2012
1 parent 4aaa799 commit 2c4fadc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 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: b7d839bfff78a01705f3d7b0acd5257dc7b067c9
refs/heads/master: 4cd2d98340b4f03d5532c30fdaeb451b035429cb
11 changes: 7 additions & 4 deletions trunk/net/bluetooth/hci_conn.c
Original file line number Diff line number Diff line change
Expand Up @@ -568,13 +568,16 @@ struct hci_conn *hci_connect(struct hci_dev *hdev, int type, bdaddr_t *dst,
{
BT_DBG("%s dst %s", hdev->name, batostr(dst));

if (type == LE_LINK)
switch (type) {
case LE_LINK:
return hci_connect_le(hdev, dst, dst_type, sec_level, auth_type);

if (type == ACL_LINK)
case ACL_LINK:
return hci_connect_acl(hdev, dst, sec_level, auth_type);
case SCO_LINK:
return hci_connect_sco(hdev, dst, sec_level, auth_type);
}

return hci_connect_sco(hdev, dst, sec_level, auth_type);
return ERR_PTR(-EINVAL);
}

/* Check link security requirement */
Expand Down

0 comments on commit 2c4fadc

Please sign in to comment.