Bluetooth: Update SMP crypto functions to take the SMP context
authorJohan Hedberg <johan.hedberg@intel.com>
Fri, 27 Jun 2014 11:23:04 +0000 (14:23 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 3 Jul 2014 15:42:47 +0000 (17:42 +0200)
commitec70f36f8b17dd21c0d64af4481aa3c898c1cec7
tree420b26b401e93cc2e07b1eb127edfa0c328cec5c
parent6a7bd103c8a4286ef6f7134bfe6f104f32f2c4d4
Bluetooth: Update SMP crypto functions to take the SMP context

Passing the full SMP context instead of just the crypto context lets us
use the crypto handle from the context which in turn removes the need to
lock the hci_dev. Passing the SMP context instead of just the crypto
handle allows a bit more detailed logging which is helpful in
multi-adapter scenarios.

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