From 643eff996c1c3489b2a3fd2ed23f2f8a8e90ccfb Mon Sep 17 00:00:00 2001 From: Szymon Janc Date: Mon, 3 Feb 2020 23:12:33 +0100 Subject: [PATCH] nimble/ll: Fix SyncInfo units when no offset is provided If periodic advertising event is too far in future to be represented in SyncInfo, offset is set to 0 and units should also not be set. --- nimble/controller/src/ble_ll_adv.c | 1 + 1 file changed, 1 insertion(+) diff --git a/nimble/controller/src/ble_ll_adv.c b/nimble/controller/src/ble_ll_adv.c index 7f888fe32..1413c8164 100644 --- a/nimble/controller/src/ble_ll_adv.c +++ b/nimble/controller/src/ble_ll_adv.c @@ -634,6 +634,7 @@ ble_ll_adv_put_syncinfo(struct ble_ll_adv_sm *advsm, units |= 0x40; } else { offset = 0; + units = 0x00; } }