You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ry...@apache.org on 2020/04/27 09:36:04 UTC

[mynewt-nimble] branch master updated: nimble/gap: Make initial connection event length constants zero.

This is an automated email from the ASF dual-hosted git repository.

rymek pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-nimble.git


The following commit(s) were added to refs/heads/master by this push:
     new 55c904f  nimble/gap: Make initial connection event length constants zero.
55c904f is described below

commit 55c904fee7f575a6948a8b51d5388f4a3f2a689b
Author: h2zero <po...@gmail.com>
AuthorDate: Fri Apr 24 08:25:42 2020 -0600

    nimble/gap: Make initial connection event length constants zero.
    
    The NimBLE controller currently does not use these parameters, however other controllers such as the esp32 do make use of them.
    
    This PR is for changing these to a more "neutral" value to avoid unexpected behavior when using a different controller.
---
 nimble/host/include/host/ble_gap.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/nimble/host/include/host/ble_gap.h b/nimble/host/include/host/ble_gap.h
index b58f350..8341023 100644
--- a/nimble/host/include/host/ble_gap.h
+++ b/nimble/host/include/host/ble_gap.h
@@ -98,8 +98,8 @@ struct hci_conn_update;
 
 #define BLE_GAP_INITIAL_CONN_LATENCY        0
 #define BLE_GAP_INITIAL_SUPERVISION_TIMEOUT 0x0100
-#define BLE_GAP_INITIAL_CONN_MIN_CE_LEN     0x0010
-#define BLE_GAP_INITIAL_CONN_MAX_CE_LEN     0x0300
+#define BLE_GAP_INITIAL_CONN_MIN_CE_LEN     0x0000
+#define BLE_GAP_INITIAL_CONN_MAX_CE_LEN     0x0000
 
 #define BLE_GAP_ROLE_MASTER                 0
 #define BLE_GAP_ROLE_SLAVE                  1