Bluetooth: Fix setting correct authentication information for SMP STK
authorJohan Hedberg <johan.hedberg@intel.com>
Tue, 10 Jun 2014 12:19:50 +0000 (15:19 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 13 Jun 2014 11:30:48 +0000 (13:30 +0200)
commitfff3490f47810e2d34b91fb9e31103e923b11c2f
treefc9e2ed7d599a413165ed61291368300bf357e65
parent4ad51a75c70ba1ba6802fa7ff2ee6829b1c6e61a
Bluetooth: Fix setting correct authentication information for SMP STK

When we store the STK in slave role we should set the correct
authentication information for it. If the pairing is producing a HIGH
security level the STK is considered authenticated, and otherwise it's
considered unauthenticated. This patch fixes the value passed to the
hci_add_ltk() function when adding the STK on the slave side.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Tested-by: Marcin Kraglak <marcin.kraglak@tieto.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Cc: stable@vger.kernel.org
net/bluetooth/smp.c