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:
parent
cb3024fe86
commit
e099cfd6d7
2 changed files with 8 additions and 2 deletions
|
@ -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 */
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue