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 4c144c992208d8af6d94f424d40fddda84661b14 Author: Szymon Czapracki <[email protected]> AuthorDate: Fri May 9 14:29:16 2025 +0200 apps/bttester: Fix loop condition Fix condition for stopping loop. Include scan response data in sd construction. --- apps/bttester/src/btp_gap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/bttester/src/btp_gap.c b/apps/bttester/src/btp_gap.c index b9d504049..5d7e34f34 100644 --- a/apps/bttester/src/btp_gap.c +++ b/apps/bttester/src/btp_gap.c @@ -496,7 +496,7 @@ start_advertising(const void *cmd, uint16_t cmd_len, i += ad[adv_len].data_len; } - for (sd_len = 0U; i < cp->scan_rsp_len; sd_len++) { + for (sd_len = 0U; i < (cp->adv_data_len + cp->scan_rsp_len); sd_len++) { if (sd_len >= ARRAY_SIZE(sd)) { SYS_LOG_ERR("sd[] Out of memory"); return BTP_STATUS_FAILED;
