]> 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)
commitf7271208e92925529c94a956376d3928ea7116e0
tree048212efb478d4235f1bec5cb5338094a4222369
parent54a9dbe78490624dff79e1ce60a1adb1b58c141c
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