]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: advertisement handling in new connect procedure
authorJakub Pawlowski <jpawlowski@google.com>
Fri, 7 Aug 2015 18:22:54 +0000 (20:22 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Mon, 10 Aug 2015 19:36:13 +0000 (21:36 +0200)
commit0650a1b5c595db756bc0b6e2593abb003e7230da
treea9f51b33ae0be4412cabea681a7369234707a4d3
parentf7271208e92925529c94a956376d3928ea7116e0
Bluetooth: advertisement 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 path makes sure that after advertisement is received from device that
we try to connect to, it is properly handled in check_pending_le_conn and
trigger connect attempt.

It also modifies hci_le_connect to make sure that connect attempt will be
properly continued.

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