mirror of
https://github.com/espressif/openthread.git
synced 2026-08-14 14:47:46 +00:00
Dataset Mgmt Certificate test clean up (#739)
* Dataset Mgmt Certificate test clean up - Fix bug of reading commissioner session id after rx MGMT_ACTIVE_SET/MGMT_PENDING_SET - Restore ML16 address after modifying meshlocal prefix if the node keeps attaching - Fix bug of THCI
This commit is contained in:
@@ -489,6 +489,11 @@ ThreadError Mle::SetMeshLocalPrefix(const uint8_t *aMeshLocalPrefix)
|
||||
// Add the address back into the table.
|
||||
mNetif.AddUnicastAddress(mMeshLocal64);
|
||||
|
||||
if (mDeviceState >= kDeviceStateChild)
|
||||
{
|
||||
mNetif.AddUnicastAddress(mMeshLocal16);
|
||||
}
|
||||
|
||||
// Changing the prefix also causes the mesh local address to be different.
|
||||
mNetif.SetStateChangedFlags(OT_IP6_ML_ADDR_CHANGED);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user