Bluetooth: Controller: Fix ticks_slot_window use in Observer

Fix ticks_slot_window use in Observer, do not use for
unreserved continuous scanning, and do not use when scanning
on both 1M and Coded PHY simultaneously.

Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
This commit is contained in:
Vinayak Kariappa Chettimada 2023-09-01 05:35:19 +02:00 committed by Carles Cufí
commit 377e2a1f48

View file

@ -500,6 +500,10 @@ uint8_t ull_scan_enable(struct ll_scan_set *scan)
* enabled. * enabled.
*/ */
} }
#if defined(CONFIG_BT_TICKER_EXT)
ll_scan_ticker_ext[handle].ticks_slot_window = 0U;
#endif /* CONFIG_BT_TICKER_EXT */
} }
/* 1M scan window starts without any offset */ /* 1M scan window starts without any offset */
@ -559,6 +563,10 @@ uint8_t ull_scan_enable(struct ll_scan_set *scan)
} else { } else {
ticks_offset = 0U; ticks_offset = 0U;
} }
#if defined(CONFIG_BT_TICKER_EXT)
ll_scan_ticker_ext[handle].ticks_slot_window = 0U;
#endif /* CONFIG_BT_TICKER_EXT */
} else { } else {
ticks_offset = 0U; ticks_offset = 0U;
} }