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)
commitedb4b46651c87f1579154298c41f9c1a753565a3
treeb295cd1a0658021f46a5a9128a5e1fbd64325a9b
parent64c7b77c124c71166d1dd49fc7e8d6fee7d9b01b
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