Bluetooth: Remove redundant IRK lookup
authorJohan Hedberg <johan.hedberg@intel.com>
Thu, 3 Jul 2014 16:33:48 +0000 (19:33 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 3 Jul 2014 16:45:08 +0000 (18:45 +0200)
commit435a13d839abe8c8b9ebe1be635d1ab8f7352f56
tree1f3c1ead8c662f2fa8d7539946fb2c0d83e32f1d
parent617ca1bf11de84c23d1c83724fa89cfdc83b023a
Bluetooth: Remove redundant IRK lookup

When processing passive scanning results we need the resolved identity
address both in check_pending_le_conn() as well as later in
process_adv_report(). Since process_adv_report() calls
check_pending_le_conn() we can simply resolve the IRK earlier in the
function and thereby eliminate a second lookup.

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