]> 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)
commit6dab96bdcf22c6c5a685ee56b828eaac5b78594a
tree3d3f0be655ca1df82869e22d20fc2c8779378fe2
parent2bb73fe87dbc7816344ad60b02e4ce5b069810eb
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