Bluetooth: Simplify logic for checking for SMP completion
authorJohan Hedberg <johan.hedberg@intel.com>
Wed, 26 Feb 2014 21:33:44 +0000 (23:33 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 26 Feb 2014 21:46:04 +0000 (13:46 -0800)
commitefabba37fec4cf093fedcfcba443d0f04b606eb4
tree0d654c733f4b9ec66553cce4f4473e617fbd5309
parent9747a9f31756362e1b9d0b2347c25ae5120c3319
Bluetooth: Simplify logic for checking for SMP completion

Now that smp->remote_key_dist is tracking the keys we're still waiting
for we can use it to simplify the logic for checking whether we're done
with key distribution or not. At the same time the reliance on the
"force" parameter of smp_distribute_keys goes away and it can completely
be removed in a subsequent patch.

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