From d701c7b5a3173a4ef457ca626fdc605ff017506c Mon Sep 17 00:00:00 2001 From: artoparikka81 <37731123+artoparikka81@users.noreply.github.com> Date: Thu, 16 Sep 2021 21:05:11 +0300 Subject: [PATCH] Update hci.h For power optimised BLE slave-devices HCI_LE_AUTOCONN_TIMEOUT needs to be more than 4 seconds, otherwise master cant connect to some slaves. 20 seconds gives slave to sleep longer time and consume less battery. --- 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 243de74e118e76..b23aeea6a90235 100644 --- a/include/net/bluetooth/hci.h +++ b/include/net/bluetooth/hci.h @@ -342,7 +342,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(4000) /* 4 seconds */ +#define HCI_LE_AUTOCONN_TIMEOUT msecs_to_jiffies(20000) /* 20 seconds */ /* HCI data types */ #define HCI_COMMAND_PKT 0x01