DORMANTno replies

[PATCH] Bluetooth: hci: Fix connect issue to BLE peripherals with long broadcast intervals

From: Troy Lanes <hidden>
Date: 2017-06-16 14:56:45
Subsystem: bluetooth subsystem, the rest · Maintainers: Marcel Holtmann, Luiz Augusto von Dentz, Linus Torvalds

The BLE spec allows broadcast intervals up to 10.24 seconds.  Setting HCI_LE_AUTOCONN_TIMEOUT to the previous 2 second value results in the inability to connect to peripherals with longer than 2 second broadcast intervals.
diff --git a/include/net/bluetooth/hci.h b/include/net/bluetooth/hci.h
index fe98f0a5bef0..b25fbbfc748d 100644
--- a/include/net/bluetooth/hci.h
+++ b/include/net/bluetooth/hci.h
@@ -273,7 +273,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(20000) /* 20 seconds */

 /* HCI data types */
 #define HCI_COMMAND_PKT                0x01

Troy E. Lanes
tlanes@geoforce.com
troy@af7hg.com

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help