Bluetooth: controller: split: Add correct aux scan ticks slot

Implemented the missing ticks_slot calculation for the
auxiliary channel PDU scanning window.

Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
This commit is contained in:
Vinayak Kariappa Chettimada 2020-04-22 16:18:07 +05:30 committed by Carles Cufí
commit e099cfd6d7
2 changed files with 8 additions and 2 deletions

View file

@ -12,8 +12,12 @@
/*
* PDU Sizes
*/
/* Advertisement channel maximum payload size */
/* Advertisement channel maximum legacy payload size */
#define PDU_AC_PAYLOAD_SIZE_MAX 37
/* Advertising physical channel maximum payload size */
#define PDU_AC_EXT_PAYLOAD_SIZE_MAX 251
/* Link Layer header size of Adv PDU. Assumes pdu_adv is packed */
#define PDU_AC_LL_HEADER_SIZE (offsetof(struct pdu_adv, payload))
/* Advertisement channel maximum PDU size */

View file

@ -173,7 +173,9 @@ void ull_scan_aux_setup(struct node_rx_hdr *rx, uint8_t phy,
HAL_TICKER_US_TO_TICKS(EVENT_OVERHEAD_PREEMPT_MIN_US);
aux->evt.ticks_slot =
HAL_TICKER_US_TO_TICKS(EVENT_OVERHEAD_START_US +
ready_delay_us + 10000 +
ready_delay_us +
PKT_AC_US(PDU_AC_EXT_PAYLOAD_SIZE_MAX,
0, lll->phy) +
EVENT_OVERHEAD_END_US);
ticks_slot_offset = MAX(aux->evt.ticks_active_to_start,