Bluetooth: Use L2CAP resume callback to call smp_distribute_keys
authorJohan Hedberg <johan.hedberg@intel.com>
Mon, 11 Aug 2014 19:06:36 +0000 (22:06 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 14 Aug 2014 06:49:21 +0000 (08:49 +0200)
commit44f1a7ab51ebe1ca189445837e0599a5edc6efb1
treed9955a785be9fa69fa7f16c98195ff95b231c838
parent89d2975fa06e66ea0d3665d91f799fb1ce4b8bad
Bluetooth: Use L2CAP resume callback to call smp_distribute_keys

There's no need to export the smp_distribute_keys() function since the
resume callback is called in the same scenario. This patch makes the
smp_notify_keys function private (at the same time moving it higher up
in smp.c to avoid forward declarations) and adds a resume callback for
SMP to call it from there instead.

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