Bluetooth: Always confirm incoming SMP just-works requests
authorJohan Hedberg <johan.hedberg@intel.com>
Wed, 9 Jul 2014 16:18:09 +0000 (19:18 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 9 Jul 2014 16:23:05 +0000 (18:23 +0200)
commit2bcd4003b8fafe200eb31f43d50e305e5dc44058
tree07682fff004cd17a2b261f0c8babf8321dce21fd
parent6fea7ad1d338dba592d65423427a997f1b7ff485
Bluetooth: Always confirm incoming SMP just-works requests

For incoming requests we want to let the user know that pairing is
happening since otherwise there could be access to MEDIUM security
services without any user interaction at all. Therefore, set the
selected method to JUST_CFM instead of JUST_WORKS and let it be
converted back to JUST_WORKS later if we are the initators.

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