]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0a8d7fdcbbc2904aee340283de2ad9f943542a8f
tree0d654c733f4b9ec66553cce4f4473e617fbd5309
parentab82ba0d9370325bfafbb091db4c0b9a042fac74
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