]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Fix completing SMP as peripheral when no keys are expected
authorJohan Hedberg <johan.hedberg@intel.com>
Tue, 18 Feb 2014 15:14:34 +0000 (17:14 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 18 Feb 2014 16:58:20 +0000 (08:58 -0800)
commit16f93d91eb200bbfed6b5207e99d0c7aa5210088
tree197e61f024c1cf644107b6f1a830a4fd5381b273
parent1694771886bc889e5c72e1e8725a4c3516aa5f96
Bluetooth: Fix completing SMP as peripheral when no keys are expected

When we're the acceptors (peripheral/slave) of an SMP procedure and
we've completed distributing our keys we should only stick around
waiting for keys from the remote side if any of the initiator
distribution bits were actually set. This patch fixes the
smp_distribute_keys function to clear the SMP context when this
situation occurs.

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