OSDN Git Service

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)
commit1afc2a1ab6612dcc3f26db7ca1afba9cff359f1c
tree732c2a96faeefeb35a72e89c0b1ee3fe8f3ece47
parent24bd0bd94e0947e257c5cd6a85b0e337d953e79c
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