]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit00c06837a537c9d1d3b886b2214e1961b3379f86
tree9a61cba7282813a185cadea4c311dac406b58b5a
parent8c8f4df839ebcd4a0a2d79daa23bf19fa114c922
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