]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Fix using the correct source address type
authorJohan Hedberg <johan.hedberg@intel.com>
Sat, 12 Nov 2016 15:03:07 +0000 (17:03 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 22 Nov 2016 21:50:46 +0000 (22:50 +0100)
commit0d1bdca633c4ac7bff51d97b3b8932fbf206763e
tree3c6ec16600b7ec16f3b019bbbdae493de90eefb0
parentfa6f658fbe9c20c62988b50b053414b99b28b7ec
Bluetooth: Fix using the correct source address type

The hci_get_route() API is used to look up local HCI devices, however
so far it has been incapable of dealing with anything else than the
public address of HCI devices. This completely breaks with LE-only HCI
devices that do not come with a public address, but use a static
random address instead.

This patch exteds the hci_get_route() API with a src_type parameter
that's used for comparing with the right address of each HCI device.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
include/net/bluetooth/hci_core.h
net/bluetooth/6lowpan.c
net/bluetooth/hci_conn.c
net/bluetooth/l2cap_core.c
net/bluetooth/rfcomm/tty.c
net/bluetooth/sco.c