You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ja...@apache.org on 2022/12/01 08:40:55 UTC

[mynewt-nimble] branch master updated: nimble/ll: Fix adding peripheral connections to CSS list

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

janc 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 2d433e1b nimble/ll: Fix adding peripheral connections to CSS list
2d433e1b is described below

commit 2d433e1b5eafbba76129dee384b489894d6fc6f4
Author: Szymon Janc <sz...@codecoup.pl>
AuthorDate: Thu Nov 24 13:51:02 2022 +0100

    nimble/ll: Fix adding peripheral connections to CSS list
    
    Only central role connections should be added to that list.
---
 nimble/controller/src/ble_ll_conn.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/nimble/controller/src/ble_ll_conn.c b/nimble/controller/src/ble_ll_conn.c
index 2d344e22..5ca0997f 100644
--- a/nimble/controller/src/ble_ll_conn.c
+++ b/nimble/controller/src/ble_ll_conn.c
@@ -2062,7 +2062,8 @@ ble_ll_conn_sm_new(struct ble_ll_conn_sm *connsm)
     SLIST_INSERT_HEAD(&g_ble_ll_conn_active_list, connsm, act_sle);
 
 #if MYNEWT_VAL(BLE_LL_CONN_STRICT_SCHED)
-    if (ble_ll_sched_css_is_enabled()) {
+    if (ble_ll_sched_css_is_enabled() &&
+        (connsm->conn_role == BLE_LL_CONN_ROLE_CENTRAL)) {
         ble_ll_conn_css_update_list(connsm);
     }
 #endif