]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: add hci_connect_le_scan
authorJakub Pawlowski <jpawlowski@google.com>
Fri, 7 Aug 2015 18:22:53 +0000 (20:22 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Mon, 10 Aug 2015 19:36:13 +0000 (21:36 +0200)
commitae4f58265c596a810adfe6805e4d66137e174a90
tree048212efb478d4235f1bec5cb5338094a4222369
parentfed8f37f77f8a762f0fff1c1b0297b3fb8694fe9
Bluetooth: add hci_connect_le_scan

Currently, when trying to connect to already paired device that just
rotated its RPA MAC address, old address would be used and connection
would fail. In order to fix that, kernel must scan and receive
advertisement with fresh RPA before connecting.

This patch adds hci_connect_le_scan with dependencies, new method that
will be used to connect to remote LE devices. Instead of just sending
connect request, it adds a device to whitelist. Later patches will make
use of this whitelist to send conenct request when advertisement is
received, and properly handle timeouts.

Signed-off-by: Jakub Pawlowski <jpawlowski@google.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
include/net/bluetooth/hci_core.h
net/bluetooth/hci_conn.c
net/bluetooth/hci_core.c