Bluetooth: Controller: Revert T_MAFS change done for broadcasting roles
When calculating the offsets between primary advertising
PDU, auxiliary PDU, Periodic Advertising PDU, and BIS PDU,
the values used as anchor points for starting the periodic
interval for auxiliary, periodic and BIG events, should be
ensured to have the minimum auxiliary frame spacing T_MAFS
between the PDUs. EVENT_OVERHEAD_START_US has to be reduced
as this value is used to offset the start of the radio
event on air.
Reverts commit b867f0e8a6
("Bluetooth: Controller: Fix
T_MAFS between broadcasting roles").
Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
This commit is contained in:
parent
78cf49e0fd
commit
1164c327d6
4 changed files with 9 additions and 4 deletions
|
@ -1463,7 +1463,8 @@ uint8_t ll_adv_enable(uint8_t enable)
|
|||
ticks_anchor + ticks_slot +
|
||||
HAL_TICKER_US_TO_TICKS(
|
||||
MAX(EVENT_MAFS_US,
|
||||
EVENT_OVERHEAD_START_US) +
|
||||
EVENT_OVERHEAD_START_US) -
|
||||
EVENT_OVERHEAD_START_US +
|
||||
(EVENT_TICKER_RES_MARGIN_US << 1));
|
||||
|
||||
ticks_slot_overhead_aux =
|
||||
|
@ -1503,7 +1504,8 @@ uint8_t ll_adv_enable(uint8_t enable)
|
|||
ticks_anchor_aux + ticks_slot_aux +
|
||||
HAL_TICKER_US_TO_TICKS(
|
||||
MAX(EVENT_MAFS_US,
|
||||
EVENT_OVERHEAD_START_US) +
|
||||
EVENT_OVERHEAD_START_US) -
|
||||
EVENT_OVERHEAD_START_US +
|
||||
(EVENT_TICKER_RES_MARGIN_US << 1));
|
||||
|
||||
ret = ull_adv_sync_start(adv, sync,
|
||||
|
|
|
@ -2475,7 +2475,8 @@ uint32_t ull_adv_aux_evt_init(struct ll_adv_aux_set *aux,
|
|||
*ticks_anchor = ticks_anchor_aux;
|
||||
*ticks_anchor += HAL_TICKER_US_TO_TICKS(
|
||||
MAX(EVENT_MAFS_US,
|
||||
EVENT_OVERHEAD_START_US) +
|
||||
EVENT_OVERHEAD_START_US) -
|
||||
EVENT_OVERHEAD_START_US +
|
||||
(EVENT_TICKER_RES_MARGIN_US << 1));
|
||||
}
|
||||
#endif /* CONFIG_BT_CTLR_SCHED_ADVANCED */
|
||||
|
|
|
@ -860,7 +860,8 @@ static uint32_t adv_iso_start(struct ll_adv_iso_set *adv_iso,
|
|||
if (!err) {
|
||||
ticks_anchor += HAL_TICKER_US_TO_TICKS(
|
||||
MAX(EVENT_MAFS_US,
|
||||
EVENT_OVERHEAD_START_US) +
|
||||
EVENT_OVERHEAD_START_US) -
|
||||
EVENT_OVERHEAD_START_US +
|
||||
(EVENT_TICKER_RES_MARGIN_US << 1));
|
||||
} else {
|
||||
ticks_anchor = ticker_ticks_now_get() +
|
||||
|
|
|
@ -892,6 +892,7 @@ uint8_t ll_adv_sync_enable(uint8_t handle, uint8_t enable)
|
|||
HAL_TICKER_US_TO_TICKS(
|
||||
MAX(EVENT_MAFS_US,
|
||||
EVENT_OVERHEAD_START_US) -
|
||||
EVENT_OVERHEAD_START_US +
|
||||
(EVENT_TICKER_RES_MARGIN_US << 1));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue