]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit27101e27e9879f5635ba8f2c9548867d70627835
tree3d3f0be655ca1df82869e22d20fc2c8779378fe2
parentd3cac42673eea4041b4a6f32f108cb389fae0231
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