Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nimble/ll: Advertising fixes #1730

Merged
merged 3 commits into from
Mar 21, 2024
Merged

Conversation

andrzej-kaczmarek
Copy link
Contributor

@andrzej-kaczmarek andrzej-kaczmarek commented Mar 20, 2024

some advertising fixes:

  • try to reschedule adv event again if preempted instead of just dropping it
  • fix sync packet offset calculation in syncinfo

@andrzej-kaczmarek andrzej-kaczmarek force-pushed the ll-adv-resched branch 3 times, most recently from e23b085 to 9d02fe5 Compare March 20, 2024 16:48
@andrzej-kaczmarek andrzej-kaczmarek changed the title nimble/ll: Reschedule preempted adv event if possible nimble/ll: Advertising fixes Mar 20, 2024
@andrzej-kaczmarek andrzej-kaczmarek marked this pull request as ready for review March 20, 2024 17:19
Currently we simply drop adv event if it was preempted, but instead we
can try to reschedule it as longs as new start time does not exceed
adv_delay limit.

Note that we only reschedule if no PDU was sent in that event, otherwise
we could not guarantee that aux is properly scheduled relative to exts.
We only need current interval, no need to store min and max (and min was
never used anyway).
We need to move periodic advertising event start time by full interval
(not only ticks) as otherwise any calculation of start time in the
future event will not be accurate.
@sjanc sjanc merged commit 5504556 into apache:master Mar 21, 2024
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants