From 6e84712247df498e8544501856940ffc5815838f Mon Sep 17 00:00:00 2001 From: Szymon Janc Date: Tue, 26 Nov 2019 11:24:02 +0100 Subject: [PATCH] nimble/ll: Fix missing rfclk restart when not ending sync event --- nimble/controller/src/ble_ll_sync.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/nimble/controller/src/ble_ll_sync.c b/nimble/controller/src/ble_ll_sync.c index 436a2d98d..f73d90e2a 100644 --- a/nimble/controller/src/ble_ll_sync.c +++ b/nimble/controller/src/ble_ll_sync.c @@ -999,6 +999,10 @@ ble_ll_sync_rx_pkt_in(struct os_mbuf *rxpdu, struct ble_mbuf_hdr *hdr) */ if (!sm->flags) { ble_ll_scan_chk_resume(); + +#ifdef BLE_XCVR_RFCLK + ble_ll_sched_rfclk_chk_restart(); +#endif return; } @@ -1044,6 +1048,10 @@ ble_ll_sync_rx_pkt_in(struct os_mbuf *rxpdu, struct ble_mbuf_hdr *hdr) /* if chain was scheduled we don't end event yet */ /* TODO should we check resume only if offset is high? */ ble_ll_scan_chk_resume(); + +#ifdef BLE_XCVR_RFCLK + ble_ll_sched_rfclk_chk_restart(); +#endif return; }