Skip to content

Commit 2e27bcb

Browse files
[OpenThread] Disable IPv6 interface during erasing persistent info.
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 c4699cf commit 2e27bcb

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
@@ -1212,6 +1212,7 @@ void GenericThreadStackManagerImpl_OpenThread<ImplClass>::_ErasePersistentInfo(v
12121212
ChipLogProgress(DeviceLayer, "Erasing Thread persistent info...");
12131213
Impl()->LockThreadStack();
12141214
otThreadSetEnabled(mOTInst, false);
1215+
otIp6SetEnabled(mOTInst, false);
12151216
otInstanceErasePersistentInfo(mOTInst);
12161217
Impl()->UnlockThreadStack();
12171218
}

0 commit comments

Comments
 (0)