From: Marcel Holtmann Date: Sat, 9 May 2009 19:09:21 +0000 (-0700) Subject: Bluetooth: Don't trigger disconnect timeout for security mode 3 pairing X-Git-Tag: linux-omap-v2.6.30-rc6~2^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3d7a9d1c7ee251a04095d43eec5a3f4ff3f710a8;p=pandora-kernel.git Bluetooth: Don't trigger disconnect timeout for security mode 3 pairing A remote device in security mode 3 that tries to connect will require the pairing during the connection setup phase. The disconnect timeout is now triggered within 10 milliseconds and causes the pairing to fail. If a connection is not fully established and a PIN code request is received, don't trigger the disconnect timeout. The either successful or failing connection complete event will make sure that the timeout is triggered at the right time. The biggest problem with security mode 3 is that many Bluetooth 2.0 device and before use a temporary security mode 3 for dedicated bonding. Based on a report by Johan Hedberg Signed-off-by: Marcel Holtmann Tested-by: Johan Hedberg --- Reading git-diff-tree failed