diff options
author | Andre Guedes <andre.guedes@openbossa.org> | 2011-05-31 14:20:57 -0300 |
---|---|---|
committer | Jaikumar Ganesh <jaikumar@google.com> | 2011-07-11 11:59:16 -0700 |
commit | c7f0d99d7c747d1caf7bd87d83ab7e83a9050476 (patch) | |
tree | c6fa96dda5c5850aaae679840014fb208d7f5928 | |
parent | 5e89ece9dd1b6797078085519a8a52ec64511d24 (diff) | |
download | kernel_samsung_tuna-c7f0d99d7c747d1caf7bd87d83ab7e83a9050476.zip kernel_samsung_tuna-c7f0d99d7c747d1caf7bd87d83ab7e83a9050476.tar.gz kernel_samsung_tuna-c7f0d99d7c747d1caf7bd87d83ab7e83a9050476.tar.bz2 |
Bluetooth: Set 'peer_addr_type' in hci_le_connect()
Set the 'peer_addr_type' field of the LE Create Connection command
sent in hci_le_connect().
Signed-off-by: Andre Guedes <andre.guedes@openbossa.org>
Acked-by: Ville Tervo <ville.tervo@nokia.com>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
-rw-r--r-- | net/bluetooth/hci_conn.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/bluetooth/hci_conn.c b/net/bluetooth/hci_conn.c index 1de9c1c..6d0c529 100644 --- 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); |