Bluetooth: Fix SMP security elevation from medium to high
authorJohan Hedberg <johan.hedberg@intel.com>
Thu, 7 Jun 2012 06:58:37 +0000 (14:58 +0800)
committerGustavo Padovan <gustavo.padovan@collabora.co.uk>
Fri, 8 Jun 2012 06:58:34 +0000 (03:58 -0300)
commit4dab786482d706a2a41cd16cf174671d640a9870
tree1d068a2942a98fb8e91cca4510d958ac24cf1c85
parentd06cc416f517a25713dedd9e2a9ccf4f3086c09a
Bluetooth: Fix SMP security elevation from medium to high

If we have an unauthenticated key it is not sufficient to acheive high
security. Therefore, when deciding whether to encrypt the link or
request pairing, it is essential to in addition to checking the
existence of a key to also check whether it is authenticated or not.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
net/bluetooth/smp.c