]> 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)
commit997224ff1bb059f17b012f3f27b80d7f05553fc5
treeb295cd1a0658021f46a5a9128a5e1fbd64325a9b
parent23b574593d4b85db8823342f2c58f7b8ba0f6bf5
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