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 2019/12/18 08:44:17 UTC

[mynewt-nimble] branch master updated (cfaa870 -> d9a5d06)

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

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


    from cfaa870  nimble/ll: Add missing APIs to native PHY
     new 9350685  nimble/host: Fix cleaning conn when sync transfer enabled
     new d9a5d06  nimble/host: Improve GAP API description to sync transfer

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 nimble/host/include/host/ble_gap.h | 9 +++++++--
 nimble/host/src/ble_hs_atomic.c    | 5 +++++
 2 files changed, 12 insertions(+), 2 deletions(-)


[mynewt-nimble] 01/02: nimble/host: Fix cleaning conn when sync transfer enabled

Posted by ry...@apache.org.
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

commit 93506850393d7c2095e24b098bb4453835841432
Author: Łukasz Rymanowski <lu...@codecoup.pl>
AuthorDate: Tue Dec 17 17:04:15 2019 +0100

    nimble/host: Fix cleaning conn when sync transfer enabled
    
    When host is waiting for the sync transfer, conn->psync is allocated.
    If ACL disconnection happen before sync is established, make sure to
    free it.
---
 nimble/host/src/ble_hs_atomic.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/nimble/host/src/ble_hs_atomic.c b/nimble/host/src/ble_hs_atomic.c
index 5d51fbe..f26ba7a 100644
--- a/nimble/host/src/ble_hs_atomic.c
+++ b/nimble/host/src/ble_hs_atomic.c
@@ -28,6 +28,11 @@ ble_hs_atomic_conn_delete(uint16_t conn_handle)
     conn = ble_hs_conn_find(conn_handle);
     if (conn != NULL) {
         ble_hs_conn_remove(conn);
+#if MYNEWT_VAL(BLE_PERIODIC_ADV_SYNC_TRANSFER)
+        if (conn->psync) {
+            ble_hs_periodic_sync_free(conn->psync);
+        }
+#endif
         ble_hs_conn_free(conn);
 
     }


[mynewt-nimble] 02/02: nimble/host: Improve GAP API description to sync transfer

Posted by ry...@apache.org.
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

commit d9a5d06f1d4d5bc4a71f6f51b725b3c2c434f692
Author: Łukasz Rymanowski <lu...@codecoup.pl>
AuthorDate: Wed Dec 18 09:35:37 2019 +0100

    nimble/host: Improve GAP API description to sync transfer
---
 nimble/host/include/host/ble_gap.h | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/nimble/host/include/host/ble_gap.h b/nimble/host/include/host/ble_gap.h
index 6af7e9d..20e7dab 100644
--- a/nimble/host/include/host/ble_gap.h
+++ b/nimble/host/include/host/ble_gap.h
@@ -1467,8 +1467,13 @@ int ble_gap_periodic_adv_sync_set_info(uint8_t instance,
 
 /**
  * Enables or disables sync transfer reception on specified connection.
- * When BLE_GAP_EVENT_PERIODIC_TRANSFER is sent transfer reception is terminated
- * on that connection.
+ * When sync transfer arrives, BLE_GAP_EVENT_PERIODIC_TRANSFER is sent to the user.
+ * After that, sync transfer reception on that connection is terminated and user needs
+ * to call this API again when expect to receive next sync transfers.
+ *
+ * Note: If ACL connection gets disconnected before sync transfer arrived, user will
+ * not receive BLE_GAP_EVENT_PERIODIC_TRANSFER. Instead, sync transfer reception
+ * is terminated by the host automatically.
  *
  * @param conn_handle        Handle identifying connection.
  * @param params             Parameters for enabled sync transfer reception.