Bluetooth: Return added key when adding LTKs and IRKs
authorJohan Hedberg <johan.hedberg@intel.com>
Wed, 19 Feb 2014 12:57:44 +0000 (14:57 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 19 Feb 2014 16:04:23 +0000 (08:04 -0800)
commitca9142b8825c159897cc4a246ea27585c82add4b
tree9a61cba7282813a185cadea4c311dac406b58b5a
parent0a14ab416d7754be0bb0d4306c996f72f52fa5bf
Bluetooth: Return added key when adding LTKs and IRKs

The SMP code will need to postpone the mgmt event emission for the IRK
and LTKs. To avoid extra lookups at the end of the key distribution
simply return the added value from the add_ltk and add_irk functions.

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