Bluetooth: Use debug keys for SMP when HCI_USE_DEBUG_KEYS is set
authorJohan Hedberg <johan.hedberg@intel.com>
Tue, 24 Jun 2014 12:22:59 +0000 (15:22 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 3 Dec 2014 15:51:19 +0000 (16:51 +0100)
commit70157ef5391819a55bb4186c901ac873231fb6ea
treede6873ee8ad998062d63b1f9d05fb2a0eb0fed39
parent1408bb6efb04da3efdc998df1bc032c1d86d1842
Bluetooth: Use debug keys for SMP when HCI_USE_DEBUG_KEYS is set

The HCI_USE_DEBUG_KEYS flag is intended to force our side to always use
debug keys for pairing. This means both BR/EDR SSP as well as SMP with
LE Secure Connections. This patch updates the SMP code to use the debug
keys instead of generating a random local key pair when the flag is set.

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