From df505acaa00f9700319b8a05af9d10367849d38a Mon Sep 17 00:00:00 2001 From: Rahul Tank Date: Fri, 31 May 2024 11:54:17 +0530 Subject: [PATCH] fix(nimble) Use appendfrom to duplicate adv data --- nimble/host/src/ble_gap.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nimble/host/src/ble_gap.c b/nimble/host/src/ble_gap.c index 3c9809552..348f53f29 100644 --- a/nimble/host/src/ble_gap.c +++ b/nimble/host/src/ble_gap.c @@ -3864,7 +3864,8 @@ ble_gap_ext_adv_set_data(uint8_t instance, struct os_mbuf *data) } if (ble_adv_reattempt.data) { - ble_adv_reattempt.data = data; + rc = os_mbuf_appendfrom(ble_adv_reattempt.data, data, 0, len); + assert (rc == 0); } #endif