Bluetooth: Controller: Use context specific get interface
As the range of ticker_id has been checked, context specific
get interface be used instead of doing range check again in
ull_hdr_get_cb().
@@ -101,8 +101,8 @@ int ull_sched_adv_aux_sync_free_slot_get(uint8_t user_id,
if (IS_ENABLED(CONFIG_BT_CTLR_LOW_LAT)) {
const struct ll_adv_aux_set *aux;
- aux = (void *)ull_hdr_get_cb(ticker_id,
- &ticks_slot);
+ aux = ull_adv_aux_get(ticker_id -
+ TICKER_ID_ADV_AUX_BASE);
*ticks_anchor +=
MAX(aux->ull.ticks_active_to_start,
aux->ull.ticks_prepare_to_start);
@@ -119,8 +119,8 @@ int ull_sched_adv_aux_sync_free_slot_get(uint8_t user_id,
if (IS_ENABLED(CONFIG_BT_CTLR_LOW_LAT)) {
const struct ll_adv_sync_set *sync;
- sync = (void *)ull_hdr_get_cb(ticker_id,
- &ticks_slot);
+ sync = ull_adv_sync_get(ticker_id -
+ TICKER_ID_ADV_SYNC_BASE);
*ticks_anchor +=
MAX(sync->ull.ticks_active_to_start,
sync->ull.ticks_prepare_to_start);
@@ -137,8 +137,8 @@ int ull_sched_adv_aux_sync_free_slot_get(uint8_t user_id,
if (IS_ENABLED(CONFIG_BT_CTLR_LOW_LAT)) {
const struct ll_adv_iso_set *iso;
- iso = (void *)ull_hdr_get_cb(ticker_id,
- &ticks_slot);
+ iso = ull_adv_iso_get(ticker_id -
+ TICKER_ID_ADV_ISO_BASE);
*ticks_anchor +=
MAX(iso->ull.ticks_active_to_start,
iso->ull.ticks_prepare_to_start);
