-
Notifications
You must be signed in to change notification settings - Fork 61
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
[nrf fromtree] OpenThread: Clear SRP host and services during RevertConfiguration #573
Conversation
b9ab15f
to
29917b6
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.
I think now that you delay RevertConfiguration
, it needs to be considered what happens if BackupConfiguration
is called before kServerReady
is processed (which may happen if SRP response gets delayed or is lost and we receive a Matter command to modify Thread network). Then we should probably do the revert without waiting for the SRP response.
// must be restored on the boot. If there's no backup, the below function is a no-op. | ||
RevertConfiguration(); | ||
// must be restored. | ||
if (BackupExists()) |
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.
I don't think this check is necessary. RevertConfiguration
takes care on its own whether the backup exists or not and kServerReady
is generated only once per boot, so mRevertOnStartup
seems redundant, right?
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.
Discussed offline - we will keep mRevertOnStartup
to mark that during initialization backup was present. Additionally, we have to clear it when creating a new backup.
66ba0cc
to
0003f04
Compare
0003f04
to
1a76106
Compare
…onfiguration (#38053) * Postpone `RevertConfiguration` until Server is initialized. * Clear SRP host and services before reverting dataset. * Abort revert if creating new backup. Signed-off-by: Adrian Gielniewski <adrian.gielniewski@nordicsemi.no> (cherry picked from commit 132a7a8aed99b6f8dda15c749bc2b182bf82ffed) Signed-off-by: Adrian Gielniewski <adrian.gielniewski@nordicsemi.no>
1a76106
to
e043125
Compare
RevertConfiguration
until OpenThread is initialized.