Bluetooth: Fix DHKey Check sending order for slave role
authorJohan Hedberg <johan.hedberg@intel.com>
Wed, 4 Jun 2014 08:07:40 +0000 (11:07 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 3 Dec 2014 15:51:19 +0000 (16:51 +0100)
commitd3e54a876e35120b3355e22d78861e73a6acab6f
tree05913c51782ceded2fcd6ed1fcba3b109a2facdf
parent38606f1418cc9c0ac4230f4d9133a2cae5e02416
Bluetooth: Fix DHKey Check sending order for slave role

According to the LE SC specification the initiating device sends its
DHKey check first and the non-initiating devices sends its DHKey check
as a response to this. It's also important that the non-initiating
device doesn't send the response if it's still waiting for user input.
In order to synchronize all this a new flag is added.

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