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

Bluetooth: controller: LLCP: Fix encryption execution context #60823

Merged

Conversation

thoh-ot
Copy link
Collaborator

@thoh-ot thoh-ot commented Jul 26, 2023

rp_enc_state_wait_ltk_reply() is executed in thread context, so it is not allowed to move the encryption state machine forward.

Defer LTK reply handling to next prepare event by introducing a continue state.

Update the unit test to reflect this, and remove the TODO that actually said there was an issue in the first place.

@thoh-ot thoh-ot changed the title Bluetooth: controller: Fix LLCP encryption execution context Bluetooth: controller: LLCP: Fix encryption execution context Jul 26, 2023
@thoh-ot thoh-ot force-pushed the fix_llcp_encrypt_exec_context branch from f59c85e to 789e22a Compare July 27, 2023 07:14
@thoh-ot thoh-ot marked this pull request as ready for review July 27, 2023 08:25
kruithofa
kruithofa previously approved these changes Jul 31, 2023
rp_enc_state_wait_ltk_reply() is executed in thread context, so
it is not allowed to move the encryption state machine forward.

Defer LTK reply handling to next prepare event by introducing a continue
state.

Update the unit test to reflect this, and remove the TODO that actually
said there was an issue in the first place.

Signed-off-by: Thomas Ebert Hansen <[email protected]>
@thoh-ot
Copy link
Collaborator Author

thoh-ot commented Aug 23, 2023

Rebased

Copy link
Collaborator

@erbr-ot erbr-ot left a comment

Choose a reason for hiding this comment

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

LGTM

@erbr-ot erbr-ot requested a review from kruithofa August 23, 2023 12:42
@carlescufi carlescufi merged commit 00c5edd into zephyrproject-rtos:main Aug 30, 2023
44 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants