]> 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)
commitff3ee5133ab57c4f67ccb3ff82885301c9e9c24c
treece2807d5ec429c24ccf693c0f6c85e1ed7b8a9fe
parentda082df49249945b8dde84e52695fc17d68a4d52
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