Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 255705
b: refs/heads/master
c: 29b7988
h: refs/heads/master
i:
  255703: 6dbc579
v: v3
  • Loading branch information
Andre Guedes authored and Gustavo F. Padovan committed Jun 8, 2011
1 parent db61611 commit 0d29293
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 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: d7556e20ade582a223ca1792e1f8a7bfd7d5d008
refs/heads/master: 29b7988a23daf79c15d587ef9e98e64715aa1ea8
1 change: 1 addition & 0 deletions trunk/include/net/bluetooth/hci_core.h
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@ struct hci_conn {
spinlock_t lock;

bdaddr_t dst;
__u8 dst_type;
__u16 handle;
__u16 state;
__u8 mode;
Expand Down
8 changes: 6 additions & 2 deletions trunk/net/bluetooth/hci_event.c
Original file line number Diff line number Diff line change
Expand Up @@ -1234,10 +1234,12 @@ static void hci_cs_le_create_conn(struct hci_dev *hdev, __u8 status)
} else {
if (!conn) {
conn = hci_conn_add(hdev, LE_LINK, &cp->peer_addr);
if (conn)
if (conn) {
conn->dst_type = cp->peer_addr_type;
conn->out = 1;
else
} else {
BT_ERR("No memory for new connection");
}
}
}

Expand Down Expand Up @@ -2694,6 +2696,8 @@ static inline void hci_le_conn_complete_evt(struct hci_dev *hdev, struct sk_buff
hci_dev_unlock(hdev);
return;
}

conn->dst_type = ev->bdaddr_type;
}

if (ev->status) {
Expand Down

0 comments on commit 0d29293

Please sign in to comment.