-
Notifications
You must be signed in to change notification settings - Fork 60
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] Clear srp implementation #399
[nrf fromtree] Clear srp implementation #399
Conversation
8b416c6
to
1786e09
Compare
@@ -181,6 +181,12 @@ void ConfigurationManagerImpl::DoFactoryReset(intptr_t arg) | |||
{ | |||
ChipLogProgress(DeviceLayer, "Performing factory reset"); | |||
|
|||
#if CHIP_DEVICE_CONFIG_ENABLE_THREAD_SRP_CLIENT | |||
ThreadStackMgr().WaitOnSrpClearAllComplete(); |
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.
Why isn't ThreadStackMgr().ClearAllSrpHostAndServices()
enough? The other functions are called under the hood.
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 didn't check that, my bad
1786e09
to
1f496b0
Compare
Thanks. What about manifest update? |
1f496b0
to
35c8841
Compare
…to the GenericThreadStackManagerImpl (#32215) * Bring the functionality to clear all Srp Client host and Services to the GenericThreadStackManagerImpl * Fix Tizen build * Update src/platform/Tizen/ThreadStackManagerImpl.cpp Co-authored-by: Arkadiusz Bokowy <arkadiusz.bokowy@gmail.com> * Add method documentation and address comments * Restyled by whitespace --------- Commit: 6350333 Co-authored-by: Arkadiusz Bokowy <arkadiusz.bokowy@gmail.com> Co-authored-by: Restyled.io <commits@restyled.io>
35c8841
to
c43bd14
Compare
This commit implements the host srp clear, using cherry-picked upstream solution. Signed-off-by: Patryk Lipinski <patryk.lipinski@nordicsemi.no>
c43bd14
to
493dcc3
Compare
This patch did not land in NCS 2.6.0. I will be pulled in by the next connectedhomeip upmerge. Closing. |
This commit implements the host srp clear, using a cherry-picked upstream solution.
Cherry-picked commit 6350333 content:
“This PR brings project-chip/connectedhomeip#31606 feature to The GenericThreadStackManagerImpl.
The functionality remains the same (with the addition of deleting the client key lease also).
However, this requires each platform that uses it, to provide a synchronization mechanism.
I created the Templates _WaitOnSrpClearAllComplete and _NotifySrpClearAllComplete and I provided an implementation for all platforms using the GenericThreadStackManagerImpl. (It is left unimplemented for others)
The synchronization mechanism I chose for Zephyr platforms (nordic/telink) and Infineon might not be optional so suggestions are welcome.
The functionality was only tested on the Silabs platform and is currently only used on it also. I am confident it works for all FreeRTOS-based platforms.
I suggest all other thread platform owners take some time to test and use ClearAllSrpHostAndServices during their factory-reset sequence.”