Bluetooth: Fix BR/EDR Link Key type when derived through LE SC
authorJohan Hedberg <johan.hedberg@intel.com>
Sun, 1 Jun 2014 13:33:39 +0000 (16:33 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 3 Dec 2014 15:51:19 +0000 (16:51 +0100)
commite3befab970a0230a80f7732fd59bc19df26f805f
tree0eab18aa376e232a7833edf8b4fedd1e4267b5fa
parentdddd3059e3bdd02c4850b14b925b3bb37c23f248
Bluetooth: Fix BR/EDR Link Key type when derived through LE SC

We need to set the correct Link Key type based on the properties of the
LE SC pairing that it was derived from. If debug keys were used the type
should be a debug key, and the authenticated vs unauthenticated
information should be set on what kind of security level was reached.

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