michal-narajowski closed pull request #620: mesh: Fix missing feature bits URL: https://github.com/apache/mynewt-core/pull/620
This is a PR merged from a forked repository. As GitHub hides the original diff on merge, it is displayed below for the sake of provenance: As this is a foreign pull request (from a fork), the diff is supplied below (as it won't show otherwise due to GitHub magic): diff --git a/net/nimble/host/mesh/src/cfg.c b/net/nimble/host/mesh/src/cfg.c index 3943a41f4..4319e7171 100644 --- a/net/nimble/host/mesh/src/cfg.c +++ b/net/nimble/host/mesh/src/cfg.c @@ -78,6 +78,10 @@ static void hb_send(struct bt_mesh_model *model) feat |= BT_MESH_FEAT_RELAY; } + if (bt_mesh_gatt_proxy_get() == BT_MESH_GATT_PROXY_ENABLED) { + feat |= BT_MESH_FEAT_PROXY; + } + if (bt_mesh_friend_get() == BT_MESH_FRIEND_ENABLED) { feat |= BT_MESH_FEAT_FRIEND; } @@ -138,6 +142,14 @@ static int comp_get_page_0(struct os_mbuf *buf) feat |= BT_MESH_FEAT_RELAY; } + if ((MYNEWT_VAL(BLE_MESH_GATT_PROXY))) { + feat |= BT_MESH_FEAT_PROXY; + } + + if ((MYNEWT_VAL(BLE_MESH_FRIEND))) { + feat |= BT_MESH_FEAT_FRIEND; + } + if ((MYNEWT_VAL(BLE_MESH_LOW_POWER))) { feat |= BT_MESH_FEAT_LOW_POWER; } ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services