Bluetooth: Add smp_ltk_sec_level() helper function
authorJohan Hedberg <johan.hedberg@intel.com>
Thu, 11 Sep 2014 00:37:45 +0000 (17:37 -0700)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 11 Sep 2014 00:45:24 +0000 (02:45 +0200)
commita6f7833ca353d50de46e3532afebe4abfc5dc4d9
tree81813ae82ad5069a9880b2918de7548ccbd9a61b
parent1afc2a1ab6612dcc3f26db7ca1afba9cff359f1c
Bluetooth: Add smp_ltk_sec_level() helper function

There are several places that need to determine the security level that
an LTK can provide. This patch adds a convenience function for this to
help make the code more readable.

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