]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Fix MITM flag when initiating SMP pairing
authorJohan Hedberg <johan.hedberg@intel.com>
Tue, 18 Mar 2014 13:42:30 +0000 (15:42 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 18 Mar 2014 17:18:26 +0000 (10:18 -0700)
commitc3c46597d65b2916380296bfc022ab8f03e9093d
treee248d860b6ed117a674d113e3e1b5d636aa07d62
parent08dc705d5a9e6af75b88c8598d2d7d2fd1094baf
Bluetooth: Fix MITM flag when initiating SMP pairing

The pairing process initiated through mgmt sets the conn->auth_type
value regardless of BR/EDR or LE pairing. This value will contain the
MITM flag if the local IO capability allows it. When sending the SMP
pairing request we should check the value and ensure that the MITM bit
gets correctly set in the bonding flags.

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