Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 255707
b: refs/heads/master
c: eda42b5
h: refs/heads/master
i:
  255705: 0d29293
  255703: 6dbc579
v: v3
  • Loading branch information
Andre Guedes authored and Gustavo F. Padovan committed Jun 8, 2011
1 parent 1b55bed commit 6f68f93
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 893d67514aebcfd3ebf17bd212ceea1e2741a443
refs/heads/master: eda42b503a3c866d51146549fe46da1f5f64e2c7
9 changes: 9 additions & 0 deletions trunk/net/bluetooth/hci_conn.c
Original file line number Diff line number Diff line change
Expand Up @@ -447,13 +447,22 @@ struct hci_conn *hci_connect(struct hci_dev *hdev, int type, bdaddr_t *dst, __u8
BT_DBG("%s dst %s", hdev->name, batostr(dst));

if (type == LE_LINK) {
struct adv_entry *entry;

le = hci_conn_hash_lookup_ba(hdev, LE_LINK, dst);
if (le)
return ERR_PTR(-EBUSY);

entry = hci_find_adv_entry(hdev, dst);
if (!entry)
return ERR_PTR(-EHOSTUNREACH);

le = hci_conn_add(hdev, LE_LINK, dst);
if (!le)
return ERR_PTR(-ENOMEM);

le->dst_type = entry->bdaddr_type;

hci_le_connect(le);

hci_conn_hold(le);
Expand Down

0 comments on commit 6f68f93

Please sign in to comment.