Skip to content

Commit 372c69e

Browse files
committed
Revert "[thread] Enhance/Optimize attach to thread network (project-chip#33191)"
This reverts commit e777ef7. Signed-off-by: Adrian Gielniewski <adrian.gielniewski@nordicsemi.no>
1 parent 13657f9 commit 372c69e

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/platform/OpenThread/GenericThreadStackManagerImpl_OpenThread.hpp

-8
Original file line numberDiff line numberDiff line change
@@ -373,14 +373,6 @@ template <class ImplClass>
373373
CHIP_ERROR GenericThreadStackManagerImpl_OpenThread<ImplClass>::_AttachToThreadNetwork(
374374
const Thread::OperationalDataset & dataset, NetworkCommissioning::Internal::WirelessDriver::ConnectCallback * callback)
375375
{
376-
Thread::OperationalDataset current_dataset;
377-
// Validate the dataset change with the current state
378-
ThreadStackMgrImpl().GetThreadProvision(current_dataset);
379-
if (dataset.AsByteSpan().data_equal(current_dataset.AsByteSpan()) && callback == nullptr)
380-
{
381-
return CHIP_NO_ERROR;
382-
}
383-
384376
// Reset the previously set callback since it will never be called in case incorrect dataset was supplied.
385377
mpConnectCallback = nullptr;
386378
ReturnErrorOnFailure(Impl()->SetThreadEnabled(false));

0 commit comments

Comments
 (0)