summaryrefslogtreecommitdiffstats
path: root/net/bluetooth/6lowpan.c
diff options
context:
space:
mode:
authorClaudio Takahasi2014-01-07 13:07:48 +0100
committerGustavo Padovan2014-01-07 14:32:15 +0100
commite825eb1d7e06f616003c17e2e8e421c2e5e44142 (patch)
tree84a1d2ad6bbc759c2a40bda7e47cf26043d92d2d /net/bluetooth/6lowpan.c
parentBluetooth: Fix setting Universal/Local bit (diff)
downloadkernel-qcow2-linux-e825eb1d7e06f616003c17e2e8e421c2e5e44142.tar.gz
kernel-qcow2-linux-e825eb1d7e06f616003c17e2e8e421c2e5e44142.tar.xz
kernel-qcow2-linux-e825eb1d7e06f616003c17e2e8e421c2e5e44142.zip
Bluetooth: Fix 6loWPAN peer lookup
This patch fixes peer address lookup for 6loWPAN over Bluetooth Low Energy links. ADDR_LE_DEV_PUBLIC, and ADDR_LE_DEV_RANDOM are the values allowed for "dst_type" field in the hci_conn struct for LE links. Signed-off-by: Claudio Takahasi <claudio.takahasi@openbossa.org> Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Diffstat (limited to 'net/bluetooth/6lowpan.c')
-rw-r--r--net/bluetooth/6lowpan.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/bluetooth/6lowpan.c b/net/bluetooth/6lowpan.c
index ab4e7712457b..adb3ea04adaa 100644
--- a/net/bluetooth/6lowpan.c
+++ b/net/bluetooth/6lowpan.c
@@ -439,9 +439,9 @@ static void get_dest_bdaddr(struct in6_addr *ip6_daddr,
/* Set universal/local bit to 0 */
if (addr->b[5] & 1) {
addr->b[5] &= ~1;
- *addr_type = BDADDR_LE_PUBLIC;
+ *addr_type = ADDR_LE_DEV_PUBLIC;
} else {
- *addr_type = BDADDR_LE_RANDOM;
+ *addr_type = ADDR_LE_DEV_RANDOM;
}
}