]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Fix wrong identity address during connection failures
authorMarcel Holtmann <marcel@holtmann.org>
Tue, 18 Feb 2014 23:13:43 +0000 (15:13 -0800)
committerJohan Hedberg <johan.hedberg@intel.com>
Wed, 19 Feb 2014 04:09:41 +0000 (06:09 +0200)
commit4d8c2fc8df032dfc2575a8dbfbc3a1a2d8d6590b
treeb295cd1a0658021f46a5a9128a5e1fbd64325a9b
parent511e2613b3fd592281e5d1f5fdc0cf632c67dc47
Bluetooth: Fix wrong identity address during connection failures

When the connection attempt fails, the address information are not
provided in the HCI_LE_Connection_Complete event. So use the original
information from the connection to reconstruct the identity address.

This is important when a connection attempt has been made using the
identity address, but the cached resolvable random address has changed
in the meantime. The failure event needs to use the identity address
and not the resolvable random address.

Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
net/bluetooth/hci_conn.c
net/bluetooth/hci_event.c