Bluetooth: Add SMP flag to track which side is the initiator
authorJohan Hedberg <johan.hedberg@intel.com>
Mon, 24 Mar 2014 13:54:11 +0000 (15:54 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Mon, 24 Mar 2014 14:51:56 +0000 (07:51 -0700)
commitedca792c036f48b15ee4d70045fb6722e8797281
treed97be82e157fde5deeb2270052df44d7b0d60ab6
parent4eb65e667ba7070e4798448f5ab8dbbaa4505db0
Bluetooth: Add SMP flag to track which side is the initiator

For remotely initiated just-works pairings we want to show the user a
confirmation dialog for the pairing. However, we can only know which
side was the initiator by tracking which side sends the first Security
Request or Pairing Request PDU. This patch adds a new SMP flag to
indicate whether our side was the initiator for the pairing.

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