Skip to content

Commit a4562ae

Browse files
[OpenThread] Disable IPv6 interface during erasing persistent info. (project-chip#33170) (project-chip#33353)
Apart from disabling Thread, and erasing Persistent Info, we should disable the IPv6 interface as well and block receiving further packets. Otherwise, if we don't reboot the device after erasing Thread persistent data, we can get a packet and as a result, it causes an assert during processing AES_ECB (because crypto keys have been removed).
1 parent 07e3098 commit a4562ae

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/platform/OpenThread/GenericThreadStackManagerImpl_OpenThread.hpp

+1
Original file line numberDiff line numberDiff line change
@@ -1220,6 +1220,7 @@ void GenericThreadStackManagerImpl_OpenThread<ImplClass>::_ErasePersistentInfo(v
12201220
ChipLogProgress(DeviceLayer, "Erasing Thread persistent info...");
12211221
Impl()->LockThreadStack();
12221222
otThreadSetEnabled(mOTInst, false);
1223+
otIp6SetEnabled(mOTInst, false);
12231224
otInstanceErasePersistentInfo(mOTInst);
12241225
Impl()->UnlockThreadStack();
12251226
}

0 commit comments

Comments
 (0)