You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by an...@apache.org on 2022/08/29 11:14:23 UTC

[mynewt-nimble] branch master updated: nimble/ll: Fix host controlled features handling

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

andk 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 cc29a463 nimble/ll: Fix host controlled features handling
cc29a463 is described below

commit cc29a463fe82b636229dfa98b50c2a16594b5e18
Author: Andrzej Kaczmarek <an...@codecoup.pl>
AuthorDate: Wed Aug 24 14:07:32 2022 +0200

    nimble/ll: Fix host controlled features handling
    
    We should not allow to set subrating feature if controller does not
    support subrating.
---
 nimble/controller/include/controller/ble_ll.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/nimble/controller/include/controller/ble_ll.h b/nimble/controller/include/controller/ble_ll.h
index f336c080..a524759a 100644
--- a/nimble/controller/include/controller/ble_ll.h
+++ b/nimble/controller/include/controller/ble_ll.h
@@ -289,7 +289,11 @@ extern STATS_SECT_DECL(ble_ll_stats) ble_ll_stats;
 #define BLE_LL_CONN_CLEAR_FEATURE(connsm, feature)   (connsm->conn_features &= ~(feature))
 
 /* All the features which can be controlled by the Host */
+#if MYNEWT_VAL(BLE_LL_CFG_FEAT_LL_ENHANCED_CONN_UPDATE)
 #define BLE_LL_HOST_CONTROLLED_FEATURES (BLE_LL_FEAT_CONN_SUBRATING_HOST)
+#else
+#define BLE_LL_HOST_CONTROLLED_FEATURES (0)
+#endif
 
 /* LL timing */
 #define BLE_LL_IFS                  (150)       /* usecs */