-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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: Mesh: instantiate cdb and core keys #59816
Bluetooth: Mesh: instantiate cdb and core keys #59816
Conversation
ec2a013
to
f314681
Compare
f314681
to
edfa3ed
Compare
Minor nitpick: there is a typo in the commit message "APIand" where I belive there is missing a space char. No big deal, up to you if you want to fix it. |
subsys/bluetooth/mesh/main.c
Outdated
@@ -101,16 +102,15 @@ int bt_mesh_provision(const uint8_t net_key[16], uint16_t net_idx, | |||
subnet->kr_phase = BT_MESH_KR_NORMAL; | |||
} | |||
|
|||
/* The network key has already been existed. Importing leaves it 'as is' |
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 network key has already been existed. Importing leaves it 'as is' | |
/* The network key has already been exported. Importing leaves it 'as is' |
?
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.
It wasn't exported. The primary network key is imported during cdb creation. Never mind, I'll clarify it.
subsys/bluetooth/mesh/main.c
Outdated
* if key is the same. Otherwise, cdb replaces the old one by the new one. | ||
*/ |
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.
* if key is the same. Otherwise, cdb replaces the old one by the new one. | |
*/ | |
* if the key is the same. Otherwise, cdb replaces the old one with the new one. | |
*/ |
PR instantiates cdb and core keys to prevent scenario when key is changed over cdb API and gets new ID but core still operates with old ID(potentially invalid). Known issue the keys will be desynchronized during\after key refresh procedure. Signed-off-by: Aleksandr Khromykh <[email protected]>
PR instantiates cdb and core keys to prevent scenario when key is changed over cdb APIand gets new ID but core still operates with old ID(potentially invalid).
Known issue the keys will be desynchronized during\after key refresh procedure.