From: Johan Hedberg Date: Wed, 19 Jan 2011 06:36:50 +0000 (+0530) Subject: Bluetooth: Create a unified auth_type evaluation function X-Git-Tag: v2.6.38-rc3~29^2~4^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8556edd32f01c50a3c99e44dc2c3b1252ea59605;p=pandora-kernel.git Bluetooth: Create a unified auth_type evaluation function The logic for determining the needed auth_type for an L2CAP socket is rather complicated and has so far been duplicated in l2cap_check_security as well as l2cap_do_connect. Additionally the l2cap_check_security code was completely missing the handling of SOCK_RAW type sockets. This patch creates a unified function for the evaluation and makes l2cap_do_connect and l2cap_check_security use that function. Signed-off-by: Johan Hedberg Acked-by: Marcel Holtmann Signed-off-by: Gustavo F. Padovan --- Reading git-diff-tree failed