]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitea19ac7da20ba172e233ff8a92b56b3b16c81654
treefc9e2ed7d599a413165ed61291368300bf357e65
parent70313fe094b57282f2b77e9b63786e7ba6a72ded
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