From: Johan Hedberg Date: Mon, 8 Jun 2015 15:14:39 +0000 (+0300) Subject: Bluetooth: Fix encryption key size handling for LTKs X-Git-Tag: omap-for-v4.2/fixes-rc1^2~134^2~29^2~66 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8b76ce34c43a569f981623485c1b6c700594678e;p=pandora-kernel.git Bluetooth: Fix encryption key size handling for LTKs The encryption key size for LTKs is supposed to be applied only at the moment of encryption. When generating a Link Key (using LE SC) from the LTK the full non-shortened value should be used. This patch modifies the code to always keep the full value around and only apply the key size when passing the value to HCI. Signed-off-by: Johan Hedberg Signed-off-by: Marcel Holtmann --- Reading git-diff-tree failed