From: Johan Hedberg Date: Thu, 13 Nov 2014 08:55:19 +0000 (+0200) Subject: Bluetooth: Trigger SMP for the appropriate LE CoC errors X-Git-Tag: omap-for-v3.19/fixes-rc1~125^2~134^2~5^2~22 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3e64b7bd8234b459134b3059919828122e2fd79f;p=pandora-kernel.git Bluetooth: Trigger SMP for the appropriate LE CoC errors The insufficient authentication/encryption errors indicate to the L2CAP client that it should try to elevate the security level. Since there really isn't any exception to this rule it makes sense to fully handle it on the kernel side instead of pushing the responsibility to user space. This patch adds special handling of these two error codes and calls smp_conn_security() with the elevated security level if necessary. Signed-off-by: Johan Hedberg Signed-off-by: Marcel Holtmann --- Reading git-diff-tree failed