You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ja...@apache.org on 2019/12/03 22:37:26 UTC
[mynewt-nimble] 08/08: nimble/ll: Fix missing rfclk restart when
not ending sync event
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 6e84712247df498e8544501856940ffc5815838f
Author: Szymon Janc <sz...@codecoup.pl>
AuthorDate: Tue Nov 26 11:24:02 2019 +0100
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 436a2d9..f73d90e 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;
}