Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 328190
b: refs/heads/master
c: f91c846
h: refs/heads/master
v: v3
  • Loading branch information
Vinicius Costa Gomes authored and Gustavo Padovan committed Aug 21, 2012
1 parent 6aa3d78 commit 41ddc92
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 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: 144ad33020a0af66fbb188ef3f13ca91c5326a69
refs/heads/master: f91c8468df97d0ac18132eb38283524a74317901
11 changes: 6 additions & 5 deletions trunk/net/bluetooth/hci_conn.c
Original file line number Diff line number Diff line change
Expand Up @@ -521,8 +521,8 @@ static struct hci_conn *hci_connect_acl(struct hci_dev *hdev, bdaddr_t *dst,
return acl;
}

static struct hci_conn *hci_connect_sco(struct hci_dev *hdev, bdaddr_t *dst,
u8 sec_level, u8 auth_type)
static struct hci_conn *hci_connect_sco(struct hci_dev *hdev, int type,
bdaddr_t *dst, u8 sec_level, u8 auth_type)
{
struct hci_conn *acl;
struct hci_conn *sco;
Expand All @@ -531,9 +531,9 @@ static struct hci_conn *hci_connect_sco(struct hci_dev *hdev, bdaddr_t *dst,
if (IS_ERR(acl))
return acl;

sco = hci_conn_hash_lookup_ba(hdev, SCO_LINK, dst);
sco = hci_conn_hash_lookup_ba(hdev, type, dst);
if (!sco) {
sco = hci_conn_add(hdev, SCO_LINK, dst);
sco = hci_conn_add(hdev, type, dst);
if (!sco) {
hci_conn_put(acl);
return ERR_PTR(-ENOMEM);
Expand Down Expand Up @@ -574,7 +574,8 @@ struct hci_conn *hci_connect(struct hci_dev *hdev, int type, bdaddr_t *dst,
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);
case ESCO_LINK:
return hci_connect_sco(hdev, type, dst, sec_level, auth_type);
}

return ERR_PTR(-EINVAL);
Expand Down

0 comments on commit 41ddc92

Please sign in to comment.