diff --git a/src/core/thread/mle.cpp b/src/core/thread/mle.cpp index 4285a04e2..e2983de3f 100644 --- a/src/core/thread/mle.cpp +++ b/src/core/thread/mle.cpp @@ -962,6 +962,13 @@ uint16_t Mle::GetRloc16(void) const void Mle::SetRloc16(uint16_t aRloc16) { + uint16_t oldRloc16 = GetRloc16(); + + if (aRloc16 != oldRloc16) + { + otLogNoteMle("RLOC16 %04x -> %04x", oldRloc16, aRloc16); + } + Get().RemoveUnicastAddress(mMeshLocal16); Get().SetShortAddress(aRloc16);