]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Fix calling smp_distribute_keys() when still waiting for keys
authorJohan Hedberg <johan.hedberg@intel.com>
Fri, 5 Sep 2014 19:19:54 +0000 (22:19 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Mon, 8 Sep 2014 17:07:56 +0000 (19:07 +0200)
commite2db853cb26772b9817f7db8d6c060245031b7d4
treef461861ae6903364c440fdea59bd374eaf61ab70
parent5a29a623be22b074bcc2ad18ad4ed75a4f1c4e78
Bluetooth: Fix calling smp_distribute_keys() when still waiting for keys

When we're in the process of receiving keys in phase 3 of SMP we keep
track of which keys are still expected in the smp->remote_key_dist
variable. If we still have some key bits set we need to continue waiting
for more PDUs and not needlessly call smp_distribute_keys(). This patch
fixes two such cases in the smp_cmd_master_ident() and
smp_cmd_ident_addr_info() handler functions.

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