From 80a796b493ca10fe538924bbbb6093feae8c735f Mon Sep 17 00:00:00 2001 From: Vinayak Kariappa Chettimada Date: Fri, 30 Jun 2017 10:31:35 +0200 Subject: [PATCH] Bluetooth: controller: Fix scanner to use correct slot ticks The scanner was reserving a little less slot ticks which caused other roles to overlap before scan window could close. Signed-off-by: Vinayak Kariappa Chettimada --- subsys/bluetooth/controller/ll_sw/ctrl.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/subsys/bluetooth/controller/ll_sw/ctrl.c b/subsys/bluetooth/controller/ll_sw/ctrl.c index bd4abd96e87..e6bb94675e4 100644 --- a/subsys/bluetooth/controller/ll_sw/ctrl.c +++ b/subsys/bluetooth/controller/ll_sw/ctrl.c @@ -8481,7 +8481,9 @@ u32_t radio_scan_enable(u8_t type, u8_t init_addr_type, u8_t *init_addr, TICKER_US_TO_TICKS(RADIO_TICKER_XTAL_OFFSET_US); _radio.scanner.hdr.ticks_preempt_to_start = TICKER_US_TO_TICKS(RADIO_TICKER_PREEMPT_PART_MIN_US); - _radio.scanner.hdr.ticks_slot = _radio.scanner.ticks_window; + _radio.scanner.hdr.ticks_slot = + _radio.scanner.ticks_window + + TICKER_US_TO_TICKS(RADIO_TICKER_START_PART_US); ticks_interval = TICKER_US_TO_TICKS((u64_t) interval * 625); if (_radio.scanner.hdr.ticks_slot >