Bluetooth: Fix requiring SMP MITM for outgoing connections
authorJohan Hedberg <johan.hedberg@intel.com>
Sun, 1 Jun 2014 06:45:24 +0000 (09:45 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Sun, 1 Jun 2014 06:51:12 +0000 (23:51 -0700)
commit79897d2097a629179e142014ecd3cdce6eac7f0e
tree8945c57772c3a8c36af2744d1257161d3f32db91
parent6a5e81650aa8f6e636d9537c7f127c0ee4d55eae
Bluetooth: Fix requiring SMP MITM for outgoing connections

Due to recent changes to the way that the MITM requirement is set for
outgoing pairing attempts we can no longer rely on the hcon->auth_type
variable (which is actually good since it was formed from BR/EDR
concepts that don't really exist for SMP).

To match the logic that BR/EDR now uses simply rely on the local IO
capability and/or needed security level to set the MITM requirement for
outgoing pairing requests.

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