From: Johan Hedberg Date: Fri, 5 Sep 2014 19:19:54 +0000 (+0300) Subject: Bluetooth: Fix calling smp_distribute_keys() when still waiting for keys X-Git-Tag: fixes-against-v3.18-rc2~144^2~144^2~122 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c6e81e9ae61cae3ea265e8f7fb2cbe59afc63594;p=pandora-kernel.git 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 Signed-off-by: Marcel Holtmann --- Reading git-diff-tree failed