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
commit 619032f52a093ace90dc6809df224a4b73ad4a71 Author: Krzysztof Kopyściński <krzysztof.kopyscin...@codecoup.pl> AuthorDate: Fri Nov 17 14:45:52 2023 +0100 apps/bttester: add TTL to model_send command Field was missing. --- apps/bttester/src/btp/btp_mesh.h | 1 + apps/bttester/src/btp_mesh.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/bttester/src/btp/btp_mesh.h b/apps/bttester/src/btp/btp_mesh.h index b51706ab..096c3980 100644 --- a/apps/bttester/src/btp/btp_mesh.h +++ b/apps/bttester/src/btp/btp_mesh.h @@ -119,6 +119,7 @@ struct btp_mesh_lpn_set_cmd { #define BTP_MESH_MODEL_SEND 0x0f struct btp_mesh_model_send_cmd { + uint8_t ttl; uint16_t src; uint16_t dst; uint8_t payload_len; diff --git a/apps/bttester/src/btp_mesh.c b/apps/bttester/src/btp_mesh.c index 2dc3eb4d..2825329a 100644 --- a/apps/bttester/src/btp_mesh.c +++ b/apps/bttester/src/btp_mesh.c @@ -707,7 +707,7 @@ model_send(const void *cmd, uint16_t cmd_len, .net_idx = net.net_idx, .app_idx = BT_MESH_KEY_DEV, .addr = sys_le16_to_cpu(cp->dst), - .send_ttl = BT_MESH_TTL_DEFAULT, + .send_ttl = cp->ttl, }; src = sys_le16_to_cpu(cp->src);