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: Simplify SyncInfo calculation #1892

Merged

Conversation

andrzej-kaczmarek
Copy link
Contributor

This simplifies calculation of SyncInfo used in AUX_ADV_IND and LL_PERIODIC_SYNC_IND to use the same code in both cases.

In case of LL Control PDU we do not "rewind" connsm to find proper connection event but instead "advance" padv event the same way as it was done for AUX_ADV_IND PDU.

This simplifies calculation of SyncInfo used in AUX_ADV_IND and
LL_PERIODIC_SYNC_IND to use the same code in both cases.

In case of LL Control PDU we do not "rewind" connsm to find proper
connection event but instead "advance" padv event the same way as it was
done for AUX_ADV_IND PDU.
put_le16(conn_event_cnt, conn_cnt);
put_le16(conn_event_cntr, anchor_event_cntr);
#else
BLE_LL_ASSERT(0);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: Could be a comment here, that connsm shall be used only for SYNC_TRANSFER

Copy link
Contributor

@rymanluk rymanluk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGMT

@andrzej-kaczmarek andrzej-kaczmarek merged commit 37143be into apache:master Oct 22, 2024
18 checks passed
@andrzej-kaczmarek andrzej-kaczmarek deleted the ll-syncinfo-rework branch October 22, 2024 20:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants