From: Waldemar Rymarkiewicz Date: Thu, 28 Apr 2011 10:07:54 +0000 (+0200) Subject: Bluetooth: Don't modify sec_level if auth failed X-Git-Tag: v3.0-rc1~377^2~161^2^2~40^2~16 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9003c4e220c2954a53c5da0d739ed15a46c13429;p=pandora-kernel.git Bluetooth: Don't modify sec_level if auth failed If authentication fails the security level should stay as it was set before the process has started. Setting BT_SECURITY_LOW can hide real security level on a link eg. having BT_SECURITY_MEDIUM on the link, re-authenticate with failure to get BT_SECURITY_HIGH, as a result we get BT_SECURITY_LOW on the link while the real security is still medium. Signed-off-by: Waldemar Rymarkiewicz Signed-off-by: Gustavo F. Padovan --- Reading git-diff-tree failed