]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit46ca494624b0b4252ab052794d2c05298c2360df
tree8945c57772c3a8c36af2744d1257161d3f32db91
parent6cb82829e9a8f7cecf60a3b70319771b8f3077fc
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