]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitda082df49249945b8dde84e52695fc17d68a4d52
treed97be82e157fde5deeb2270052df44d7b0d60ab6
parent1f91e0de2dc9c9be0d752fbf78982670d3a8f412
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