From: Johan Hedberg Date: Mon, 14 Jul 2014 11:34:55 +0000 (+0300) Subject: Bluetooth: Fix trying LTK re-encryption when we don't have an LTK X-Git-Tag: cleanup-for-v3.18~108^2~73^2~42^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b2d5e254ebfe9e4a926265c23bc5943f212fd1ac;p=pandora-kernel.git Bluetooth: Fix trying LTK re-encryption when we don't have an LTK In the case that the key distribution bits cause us not to generate a local LTK we should not try to re-encrypt if we're currently encrypted with an STK. This patch fixes the check for this in the smp_sufficient_security function. Signed-off-by: Johan Hedberg Signed-off-by: Marcel Holtmann --- Reading git-diff-tree failed