-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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: Prevent duplicate cdb appkeys #69571
Bluetooth: Mesh: Prevent duplicate cdb appkeys #69571
Conversation
4c0acde
to
084cbcd
Compare
084cbcd
to
1e6dbc8
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.
Please update the function doc
1e6dbc8
to
8d26e90
Compare
8d26e90
to
c036680
Compare
I need to revise my fix, there is an issue for app_idx=0 now since this is the value all entries have before they are taken into use. |
c036680
to
25c26ff
Compare
Fixes issue where it is possible to store the same appkey multiple times in CDB implementation. Signed-off-by: Anders Storrø <[email protected]>
25c26ff
to
d9d66a5
Compare
@@ -94,6 +94,7 @@ struct bt_mesh_cdb bt_mesh_cdb = { | |||
}, | |||
.app_keys = { | |||
[0 ... (CONFIG_BT_MESH_CDB_APP_KEY_COUNT - 1)] = { | |||
.app_idx = BT_MESH_KEY_UNUSED, |
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.
👍
Fixes issue where it is possible to store the same appkey multiple times in CDB implementation.