]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: timeout handling in new connect procedure
authorJakub Pawlowski <jpawlowski@google.com>
Fri, 7 Aug 2015 18:22:55 +0000 (20:22 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Mon, 10 Aug 2015 19:36:13 +0000 (21:36 +0200)
commit48d872e1686666c75f950c0b84fe45571264395f
tree4b93783e87c0e8b8efadd1cf35fd989b4863e62f
parent0650a1b5c595db756bc0b6e2593abb003e7230da
Bluetooth: timeout handling in new connect procedure

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 makes sure that when new procedure is in use, and we're stuck
in scan phase because no advertisement was received and timeout happened,
or app decided to close socket, scan whitelist gets properly cleaned up.

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