From e21192ab8982e4b96562f72f59cfbced1408b569 Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Mon, 26 Oct 2015 21:19:33 +0100 Subject: [PATCH] set default max le conn latency max to 500 as specified in core 4.2 --- src/hci.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/hci.c b/src/hci.c index 432f36e90..27f0d0501 100644 --- a/src/hci.c +++ b/src/hci.c @@ -1718,12 +1718,12 @@ static void hci_state_reset(void){ hci_stack->le_connecting_state = LE_CONNECTING_IDLE; hci_stack->le_whitelist = 0; hci_stack->le_whitelist_capacity = 0; - hci_stack->le_connection_parameter_range.le_conn_interval_min = 0x0006; - hci_stack->le_connection_parameter_range.le_conn_interval_max = 0x0C80; - hci_stack->le_connection_parameter_range.le_conn_latency_min = 0x0000; - hci_stack->le_connection_parameter_range.le_conn_latency_max = 0x03E8; - hci_stack->le_connection_parameter_range.le_supervision_timeout_min = 0x000A; - hci_stack->le_connection_parameter_range.le_supervision_timeout_max = 0x0C80; + hci_stack->le_connection_parameter_range.le_conn_interval_min = 6; + hci_stack->le_connection_parameter_range.le_conn_interval_max = 3200; + hci_stack->le_connection_parameter_range.le_conn_latency_min = 0; + hci_stack->le_connection_parameter_range.le_conn_latency_max = 500; + hci_stack->le_connection_parameter_range.le_supervision_timeout_min = 10; + hci_stack->le_connection_parameter_range.le_supervision_timeout_max = 3200; } void hci_init(hci_transport_t *transport, void *config, bt_control_t *control, remote_device_db_t const* remote_device_db){