Lines Matching refs:networkInfo
368 Settings::NetworkInfo networkInfo; in Restore() local
378 SuccessOrExit(Get<Settings>().Read(networkInfo)); in Restore()
380 Get<KeyManager>().SetCurrentKeySequence(networkInfo.GetKeySequence(), in Restore()
382 Get<KeyManager>().SetMleFrameCounter(networkInfo.GetMleFrameCounter()); in Restore()
383 …Get<KeyManager>().SetAllMacFrameCounters(networkInfo.GetMacFrameCounter(), /* aSetIfLarger */ fals… in Restore()
386 mDeviceMode.Set(networkInfo.GetDeviceMode() & ~DeviceMode::kModeFullThreadDevice); in Restore()
388 mDeviceMode.Set(networkInfo.GetDeviceMode()); in Restore()
392 VerifyOrExit(networkInfo.GetVersion() == kThreadVersion); in Restore()
394 mLastSavedRole = static_cast<DeviceRole>(networkInfo.GetRole()); in Restore()
408 if (IsChildRloc16(networkInfo.GetRloc16())) in Restore()
411 Get<Mac::Mac>().SetShortAddress(networkInfo.GetRloc16()); in Restore()
412 mRloc16 = networkInfo.GetRloc16(); in Restore()
414 Get<Mac::Mac>().SetExtAddress(networkInfo.GetExtAddress()); in Restore()
416 mMeshLocalEid.GetAddress().SetIid(networkInfo.GetMeshLocalIid()); in Restore()
418 if (networkInfo.GetRloc16() == kInvalidRloc16) in Restore()
423 if (IsChildRloc16(networkInfo.GetRloc16())) in Restore()
434 networkInfo.GetRloc16()); in Restore()
443 mParent.SetRloc16(ParentRloc16ForRloc16(networkInfo.GetRloc16())); in Restore()
452 Get<MleRouter>().SetPreviousPartitionId(networkInfo.GetPreviousPartitionId()); in Restore()
468 Settings::NetworkInfo networkInfo; in Store() local
470 networkInfo.Init(); in Store()
478 networkInfo.SetRole(mRole); in Store()
479 networkInfo.SetRloc16(GetRloc16()); in Store()
480 networkInfo.SetPreviousPartitionId(mLeaderData.GetPartitionId()); in Store()
481 networkInfo.SetExtAddress(Get<Mac::Mac>().GetExtAddress()); in Store()
482 networkInfo.SetMeshLocalIid(mMeshLocalEid.GetAddress().GetIid()); in Store()
483 networkInfo.SetVersion(kThreadVersion); in Store()
507 SuccessOrExit(Get<Settings>().Read(networkInfo)); in Store()
510 networkInfo.SetKeySequence(Get<KeyManager>().GetCurrentKeySequence()); in Store()
511 … networkInfo.SetMleFrameCounter(Get<KeyManager>().GetMleFrameCounter() + mStoreFrameCounterAhead); in Store()
512 …networkInfo.SetMacFrameCounter(Get<KeyManager>().GetMaximumMacFrameCounter() + mStoreFrameCounterA… in Store()
513 networkInfo.SetDeviceMode(mDeviceMode.Get()); in Store()
515 SuccessOrExit(error = Get<Settings>().Save(networkInfo)); in Store()
517 Get<KeyManager>().SetStoredMleFrameCounter(networkInfo.GetMleFrameCounter()); in Store()
518 Get<KeyManager>().SetStoredMacFrameCounter(networkInfo.GetMacFrameCounter()); in Store()