projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eda42b5
)
Bluetooth: Set 'peer_addr_type' in hci_le_connect()
author
Andre Guedes
<
[email protected]
>
Tue, 31 May 2011 17:20:57 +0000
(14:20 -0300)
committer
Gustavo F. Padovan
<
[email protected]
>
Wed, 8 Jun 2011 19:58:18 +0000
(16:58 -0300)
Set the 'peer_addr_type' field of the LE Create Connection command
sent in hci_le_connect().
Signed-off-by: Andre Guedes <
[email protected]
>
Acked-by: Ville Tervo <
[email protected]
>
Signed-off-by: Gustavo F. Padovan <
[email protected]
>
net/bluetooth/hci_conn.c
patch
|
blob
|
history
diff --git
a/net/bluetooth/hci_conn.c
b/net/bluetooth/hci_conn.c
index 4e38b48728657c4a2c8b9ae4beb8896c62e94b3b..ce67d0ff486ff696ab87cddf007632442557ba1a 100644
(file)
--- a/
net/bluetooth/hci_conn.c
+++ b/
net/bluetooth/hci_conn.c
@@
-58,6
+58,7
@@
static void hci_le_connect(struct hci_conn *conn)
cp.scan_interval = cpu_to_le16(0x0004);
cp.scan_window = cpu_to_le16(0x0004);
bacpy(&cp.peer_addr, &conn->dst);
+ cp.peer_addr_type = conn->dst_type;
cp.conn_interval_min = cpu_to_le16(0x0008);
cp.conn_interval_max = cpu_to_le16(0x0100);
cp.supervision_timeout = cpu_to_le16(0x0064);