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)
commita82505c7bcbc1f8cce28d092aba01f62c7b85fa3
treece2807d5ec429c24ccf693c0f6c85e1ed7b8a9fe
parentedca792c036f48b15ee4d70045fb6722e8797281
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