Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1f01d8be authored by Konrad Zapałowicz's avatar Konrad Zapałowicz Committed by Marcel Holtmann
Browse files

Bluetooth: increase timeout for le auto connections



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: default avatarKonrad Zapałowicz <konrad.zapalowicz@canonical.com>
Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
parent 13df5000
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -273,7 +273,7 @@ enum {
#define HCI_AUTO_OFF_TIMEOUT	msecs_to_jiffies(2000)	/* 2 seconds */
#define HCI_AUTO_OFF_TIMEOUT	msecs_to_jiffies(2000)	/* 2 seconds */
#define HCI_POWER_OFF_TIMEOUT	msecs_to_jiffies(5000)	/* 5 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_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 */
/* HCI data types */
#define HCI_COMMAND_PKT		0x01
#define HCI_COMMAND_PKT		0x01