-
Notifications
You must be signed in to change notification settings - Fork 7.3k
Bluetooth: BAP: Update encrypt_state when BIG synced after bad code #88891
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: BAP: Update encrypt_state when BIG synced after bad code #88891
Conversation
Hello @mefromac, and thank you very much for your first pull request to the Zephyr project! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The change looks OK (needs a small formatting fix), but the commit message needs to be more descriptive and not refer to a Github issue.
See https://docs.zephyrproject.org/latest/contribute/guidelines.html#commit-message-guidelines
add4eeb
to
9cee0da
Compare
- When encrypt_state in a receive state of the scan delegator is BT_BAP_BIG_ENC_STATE_BAD_CODE, make sure that on synchronization encrypt_state is updated to BT_BAP_BIG_ENC_STATE_DEC, as this implies that a correct code was provided, so that the broadcast assistant is not asked for a correct code any longer. Signed-off-by: Max Emde <[email protected]>
9cee0da
to
7616520
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR addresses issue #88461 by ensuring that the encryption state is properly updated after a BIG sync when a bad code is encountered.
- Updated condition in update_recv_state_big_synced() to handle BT_BAP_BIG_ENC_STATE_BAD_CODE
- Adjusted encryption state assignment based on the new condition
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Hi @mefromac! To celebrate this milestone and showcase your contribution, we'd love to award you the Zephyr Technical Contributor badge. If you're interested, please claim your badge by filling out this form: Claim Your Zephyr Badge. Thank you for your valuable input, and we look forward to seeing more of your contributions in the future! 🪁 |
Fixes #88461