Bluetooth: Pass only crypto context to SMP crypto functions
authorJohan Hedberg <johan.hedberg@intel.com>
Sat, 25 Oct 2014 19:15:37 +0000 (21:15 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Sat, 25 Oct 2014 19:33:56 +0000 (21:33 +0200)
commite491eaf3c0b02b5325535a2de3e4fa15a3093190
tree3d3f0be655ca1df82869e22d20fc2c8779378fe2
parent4f639edef73c15ddb1534e39f4bd6234ee04e4f8
Bluetooth: Pass only crypto context to SMP crypto functions

In order to make unit testing possible we need to make the SMP crypto
functions only take the crypto context instead of the full SMP context
(the latter would require having hci_dev, hci_conn, l2cap_chan,
l2cap_conn, etc around). The drawback is that we no-longer get the
involved hdev in the debug logs, but this is really the only way to make
simple unit tests for the code.

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