]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Fix SMP security level when we have no IO capabilities
authorJohan Hedberg <johan.hedberg@intel.com>
Thu, 11 Sep 2014 00:37:44 +0000 (17:37 -0700)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 11 Sep 2014 00:45:24 +0000 (02:45 +0200)
commit0319b489d732381677d97075e442c57d09c79e80
tree732c2a96faeefeb35a72e89c0b1ee3fe8f3ece47
parentaca85a8dda62137664a92f48749a269ce518e090
Bluetooth: Fix SMP security level when we have no IO capabilities

When the local IO capability is NoInputNoOutput any attempt to convert
the remote authentication requirement to a target security level is
futile. This patch makes sure that we set the target security level at
most to MEDIUM if the local IO capability is NoInputNoOutput.

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