]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Fix rejecting pairing in case of insufficient capabilities
authorJohan Hedberg <johan.hedberg@intel.com>
Tue, 17 Jun 2014 10:07:39 +0000 (13:07 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 20 Jun 2014 11:53:48 +0000 (13:53 +0200)
commit53c89ae70d53c5fb9736b756d0063273ea213c43
treec90cdea02ae2b16f95edccd22423ee73b3a56f82
parent9740c99493a635af4a1000a8e79ded423671df69
Bluetooth: Fix rejecting pairing in case of insufficient capabilities

If we need an MITM protected connection but the local and remote IO
capabilities cannot provide it we should reject the pairing attempt in
the appropriate way. This patch adds the missing checks for such a
situation to the smp_cmd_pairing_req() and smp_cmd_pairing_rsp()
functions.

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