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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxx
troy@xxxxxxxxx


Attachment: signature.asc
Description: Message signed with OpenPGP


[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux