]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Clearly distinguish mgmt LTK type from authenticated property
authorJohan Hedberg <johan.hedberg@intel.com>
Fri, 23 May 2014 10:19:53 +0000 (13:19 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 23 May 2014 18:24:04 +0000 (11:24 -0700)
commit08eccc8f17cac601c08942cbc9f1a8e849586efd
tree1cacf5b693028850ada383f603609d9f5a8072a1
parent7ff7997331b630656882e85f30d77f7f86f4ed9e
Bluetooth: Clearly distinguish mgmt LTK type from authenticated property

On the mgmt level we have a key type parameter which currently accepts
two possible values: 0x00 for unauthenticated and 0x01 for
authenticated. However, in the internal struct smp_ltk representation we
have an explicit "authenticated" boolean value.

To make this distinction clear, add defines for the possible mgmt values
and do conversion to and from the internal authenticated value.

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