From patchwork Tue Nov 14 10:51:40 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Konrad Zapalowicz X-Patchwork-Id: 838101 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=) Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) by ozlabs.org (Postfix) with ESMTP id 3ycC7h42F6z9sMN; Wed, 15 Nov 2017 16:08:16 +1100 (AEDT) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from ) id 1eEpvi-0002YU-Dy; Wed, 15 Nov 2017 05:08:06 +0000 Received: from youngberry.canonical.com ([91.189.89.112]) by huckleberry.canonical.com with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.86_2) (envelope-from ) id 1eEYoi-0003eH-06 for kernel-team@lists.ubuntu.com; Tue, 14 Nov 2017 10:51:44 +0000 Received: from mail-lf0-f70.google.com ([209.85.215.70]) by youngberry.canonical.com with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.76) (envelope-from ) id 1eEYoh-0003jG-Ns for kernel-team@lists.ubuntu.com; Tue, 14 Nov 2017 10:51:43 +0000 Received: by mail-lf0-f70.google.com with SMTP id a2so5044641lfh.4 for ; Tue, 14 Nov 2017 02:51:43 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=KUX7t96DTmjO/pcmbfQjDTDiC90FbcTImTzUpH8ciCc=; b=L8bYf9XJPBryLBvX/srhXpU7qhL3YCKQI2YI5fnXaoYej6eJsFhT2wlAKgK7gWLPG0 tJMpGq7VLem9INks+W0IWNSDubxNj6STVFNPIXSX3WrscxLaCsvea8a26EWYQrXS43j6 SgsrnmFwrXIji6rPVZs+ezu2i9l6d5jKsPoiYsM1GHKBiMKtqX8Gzo/O9FDbP3OQNxFZ sPnoupguBx6xzoVlpLqJZM0+abgJpCD29AKc5WZQoJmkNy12pGENwc35kTTqJ90vyIt7 DykNWCKACGUqViAJlIe+vhoA+DFH848JM42d9rPUkTJxHpv21+k1KshI+ilca/eNif1g civg== X-Gm-Message-State: AJaThX4zWQW0ZkCrCD61sjgcMC60pVfTG5JYrkHwmhbCc5NVBOrc/WUG LUzWdVGyPbiNdOc+8ggFPHc0fC/LhB8wXOSfh5AuO/mudqc0ZbC1BFqEtvWkOrEnMkLacj4REKR Fwu61WlHAga5DVM4EfkTD6wxCr+MwYDiKqE94vsd6ZQ== X-Received: by 10.46.25.18 with SMTP id p18mr4372639lje.24.1510656702974; Tue, 14 Nov 2017 02:51:42 -0800 (PST) X-Google-Smtp-Source: AGs4zMbsFj+86rTnkveP3B6h7Mnr89PWeWOSV/tTKne2w/hkpTlTzH4ZsKKnOrbgSzkEp+gWYmm3Yg== X-Received: by 10.46.25.18 with SMTP id p18mr4372634lje.24.1510656702785; Tue, 14 Nov 2017 02:51:42 -0800 (PST) Received: from localhost.localdomain (user-94-254-142-28.play-internet.pl. [94.254.142.28]) by smtp.gmail.com with ESMTPSA id 8sm3675658ljs.34.2017.11.14.02.51.41 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 14 Nov 2017 02:51:42 -0800 (PST) From: Konrad Zapalowicz To: kernel-team@lists.ubuntu.com Subject: [xenial] SRU: [PATCH v2 1/1] Bluetooth: increase timeout for le auto connections Date: Tue, 14 Nov 2017 11:51:40 +0100 Message-Id: <1510656700-6395-2-git-send-email-konrad.zapalowicz@canonical.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1510656700-6395-1-git-send-email-konrad.zapalowicz@canonical.com> References: <20171113155359.xog75dkofxkq2lmi@ubuntu-hedt> <1510656700-6395-1-git-send-email-konrad.zapalowicz@canonical.com> MIME-Version: 1.0 X-Mailman-Approved-At: Wed, 15 Nov 2017 05:08:05 +0000 X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" From: Konrad Zapałowicz BugLink: https://bugs.launchpad.net/bugs/1731467 This patch increases the connection timeout for LE connections that are triggered by the advertising report to 4 seconds. It has been observed that devices equipped with wifi+bt combo SoC fail to create a connection with BLE devices due to their coexistence issues. Increasing this timeout gives them enough time to complete the connection with success. Signed-off-by: Konrad Zapałowicz Signed-off-by: Marcel Holtmann (cherry picked from commit 1f01d8be0e6a04bd682a55f6d50c14c1679e7571 linux-next) Acked-by: Stefan Bader --- include/net/bluetooth/hci.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/net/bluetooth/hci.h b/include/net/bluetooth/hci.h index 0205b80..630f6d7 100644 --- a/include/net/bluetooth/hci.h +++ b/include/net/bluetooth/hci.h @@ -266,7 +266,7 @@ enum { #define HCI_AUTO_OFF_TIMEOUT msecs_to_jiffies(2000) /* 2 seconds */ #define HCI_POWER_OFF_TIMEOUT msecs_to_jiffies(5000) /* 5 seconds */ #define HCI_LE_CONN_TIMEOUT msecs_to_jiffies(20000) /* 20 seconds */ -#define HCI_LE_AUTOCONN_TIMEOUT msecs_to_jiffies(2000) /* 2 seconds */ +#define HCI_LE_AUTOCONN_TIMEOUT msecs_to_jiffies(4000) /* 4 seconds */ /* HCI data types */ #define HCI_COMMAND_PKT 0x01