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: Drop received PDU if it is handled after scan was stopped #1612

Merged
merged 1 commit into from
Sep 19, 2023

Conversation

sjanc
Copy link
Contributor

@sjanc sjanc commented Sep 15, 2023

When doing continuous scan and channel is changed close to scan stop it is possible that PDU is received before interval timer is cancelled and RX is disabled. This may lead to processing received PDU only after scanner is already stopped. While this case was already handled in LL task it was not correctly handled in ISR. If this happen simply mark PDU to be ignored by LL and don't process it in ISR.

This is more likely to happen when small scan window is used.

Mostly affects initiator state as this may lead to assert when happen after CONNECTION_IND was already sent.

When doing continuous scan and channel is changed close to scan stop
it is possible that PDU is received before interval timer is cancelled
and RX is disabled. This may lead to processing received PDU only after
scanner is already stopped. While this case was already handled in LL
task it was not correctly handled in ISR. If this happen simply mark
PDU to be ignored by LL and don't process it in ISR.

This is more likely to happen when small scan window is used.

Mostly affects initiator state as this may lead to assert when happen
after CONNECTION_IND was already sent.
@sjanc
Copy link
Contributor Author

sjanc commented Sep 18, 2023

compliance check failure is due to STATS macros...

@sjanc sjanc merged commit a35cb28 into apache:master Sep 19, 2023
7 of 8 checks passed
@sjanc sjanc deleted the rx_pdu_scan_disabled branch September 19, 2023 13:16
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.

None yet

2 participants