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

[Backport v2.4-branch] Bluetooth: host: Overwrite existing bond when IRK has been updated #33433

Merged
merged 2 commits into from
Mar 23, 2021

Conversation

zephyrbot
Copy link
Collaborator

Backport e06bac0e4f2537ec1547c1c2cca80d5f25fdf0a3~2..e06bac0e4f2537ec1547c1c2cca80d5f25fdf0a3 from #33266

Refactor update_keys_check helper function to operate on input keys
input. This allows the function to be re-used on a keys structure that
is not the current connection keys.

This also avoids the helper function changing the connection state.
The conn->le.keys pointer should at this point always have been
assigned, as central when sending the pairing request, and as peripheral
when receiving the pairing request at the very latest.

Signed-off-by: Joakim Andersson <joakim.andersson@nordicsemi.no>
Overwrite the existing bond when the IRK of the existing bond could not
resolve the RPA of the peer. This would happen if the peer has deleted
the bond and replaced the IRK that was used.

Signed-off-by: Joakim Andersson <joakim.andersson@nordicsemi.no>
@nashif nashif merged commit da887af into v2.4-branch Mar 23, 2021
@galak galak deleted the backport-33266-to-v2.4-branch branch June 10, 2021 13:27
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.

4 participants