From: Johan Hedberg Date: Fri, 28 Feb 2014 15:45:46 +0000 (+0200) Subject: Bluetooth: Add timeout for LE connection attempts X-Git-Tag: v3.15-rc1~113^2~159^2^2~37^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9489eca4ab2fd5d9bbf3bab992168cc8107fc3e9;p=pandora-kernel.git Bluetooth: Add timeout for LE connection attempts LE connection attempts do not have a controller side timeout in the same way as BR/EDR has (in form of the page timeout). Since we always do scanning before initiating connections the attempts are always expected to succeed in some reasonable time. This patch adds a timer which forces a cancellation of the connection attempt within 20 seconds if it has not been successful by then. This way we e.g. ensure that mgmt_pair_device times out eventually and gives an error response. Signed-off-by: Johan Hedberg Signed-off-by: Marcel Holtmann --- Reading git-diff-tree failed