From: Johan Hedberg Date: Tue, 18 Feb 2014 15:14:34 +0000 (+0200) Subject: Bluetooth: Fix completing SMP as peripheral when no keys are expected X-Git-Tag: v3.15-rc1~113^2~159^2^2~130^2~32 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b7d448d74a09af412d778918415fe2ea4d5c2de4;p=pandora-kernel.git 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 Signed-off-by: Marcel Holtmann --- Reading git-diff-tree failed