Bluetooth: Move SMP LTK notification after key distribution
authorJohan Hedberg <johan.hedberg@intel.com>
Wed, 19 Feb 2014 12:57:47 +0000 (14:57 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 19 Feb 2014 16:04:24 +0000 (08:04 -0800)
commit35d702719d6464a9de2bf98d536c6e054f0a8f7e
tree483c5f9215f710855f062cc10e6d5b3835a1da71
parent23d0e128e38049734c7ecc0987de02486d1ded3e
Bluetooth: Move SMP LTK notification after key distribution

This patch moves the SMP Long Term Key notification over mgmt from the
hci_add_ltk function to smp.c when both sides have completed their key
distribution. This way we are also able to update the identity address
into the mgmt_new_ltk event.

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
net/bluetooth/mgmt.c
net/bluetooth/smp.c