diff options
author | Johan Hedberg <johan.hedberg@intel.com> | 2016-11-12 18:03:07 +0300 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2016-11-23 00:50:46 +0300 |
commit | 39385cb5f3274735b03ed1f8e7ff517b02a0beed (patch) | |
tree | 3c6ec16600b7ec16f3b019bbbdae493de90eefb0 /net/bluetooth/rfcomm | |
parent | c9b8af1330198ae241cd545e1f040019010d44d9 (diff) | |
download | linux-39385cb5f3274735b03ed1f8e7ff517b02a0beed.tar.xz |
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>
Diffstat (limited to 'net/bluetooth/rfcomm')
-rw-r--r-- | net/bluetooth/rfcomm/tty.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bluetooth/rfcomm/tty.c b/net/bluetooth/rfcomm/tty.c index 8e385a0ae60e..2f2cb5e27cdd 100644 --- a/net/bluetooth/rfcomm/tty.c +++ b/net/bluetooth/rfcomm/tty.c @@ -178,7 +178,7 @@ static void rfcomm_reparent_device(struct rfcomm_dev *dev) struct hci_dev *hdev; struct hci_conn *conn; - hdev = hci_get_route(&dev->dst, &dev->src); + hdev = hci_get_route(&dev->dst, &dev->src, BDADDR_BREDR); if (!hdev) return; |