]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Don't try to confirm locally initiated SMP pairing
authorJohan Hedberg <johan.hedberg@intel.com>
Mon, 24 Mar 2014 12:39:07 +0000 (14:39 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Mon, 24 Mar 2014 14:51:56 +0000 (07:51 -0700)
commit72cb2e2d3f49b85feeb6b70ecbf21e0ae6d1cf3a
treece2807d5ec429c24ccf693c0f6c85e1ed7b8a9fe
parente4d329c2f0c23c5993b07849d0473579842d64d0
Bluetooth: Don't try to confirm locally initiated SMP pairing

In the case that the just-works model would be triggered we only want to
confirm remotely initiated pairings (i.e. those triggered by a Security
Request or Pairing Request). This patch adds the necessary check to the
tk_request function to fall back to the JUST_WORKS method in the case of
a locally initiated pairing.

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