]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Fix SMP user passkey notification mgmt event
authorJohan Hedberg <johan.hedberg@intel.com>
Wed, 19 Mar 2014 12:14:53 +0000 (14:14 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 19 Mar 2014 20:55:06 +0000 (13:55 -0700)
commite138f972c392364d85232c6e7301a74fe075b896
tree45d12bac249e36219b6c533dae85e78090208aad
parent1e7dd9fac216479ce6551f931b868f4407a300d3
Bluetooth: Fix SMP user passkey notification mgmt event

When performing SMP pairing with MITM protection one side needs to
enter the passkey while the other side displays to the user what needs
to be entered. Nowhere in the SMP specification does it say that the
displaying side needs to any kind of confirmation of the passkey, even
though a code comment in smp.c implies this.

This patch removes the misleading comment and converts the code to use
the passkey notification mgmt event instead of the passkey confirmation
mgmt event.

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