From 5994347540114088f150a054ee27b1ba2f797b03 Mon Sep 17 00:00:00 2001 From: Tennessee Carmel-Veilleux Date: Tue, 28 Jun 2022 10:52:56 -0400 Subject: [PATCH] Remove revert at restart of openthread after other changes --- .../OpenThread/GenericNetworkCommissioningThreadDriver.cpp | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/platform/OpenThread/GenericNetworkCommissioningThreadDriver.cpp b/src/platform/OpenThread/GenericNetworkCommissioningThreadDriver.cpp index f4c5b953f4e31d..08253f9430d38b 100644 --- a/src/platform/OpenThread/GenericNetworkCommissioningThreadDriver.cpp +++ b/src/platform/OpenThread/GenericNetworkCommissioningThreadDriver.cpp @@ -55,13 +55,6 @@ CHIP_ERROR GenericThreadDriver::Init(Internal::BaseDriver::NetworkStatusChangeCa VerifyOrReturnError(ThreadStackMgrImpl().IsThreadAttached(), CHIP_NO_ERROR); VerifyOrReturnError(ThreadStackMgrImpl().GetThreadProvision(mStagingNetwork) == CHIP_NO_ERROR, CHIP_NO_ERROR); - // Try to revert configuration at init, in case we rebooted during fail-safe. If there - // was no backup, this is a no-op. Note that it's better for drivers not to touch - // persistent configuration until CommitConfiguration(), but some network stacks - // like OpenThread do internal storage on connect/attach, so this is why the stateful - // approach here is needed. - RevertConfiguration(); - return CHIP_NO_ERROR; }