diff --git a/src/core/border_router/routing_manager.cpp b/src/core/border_router/routing_manager.cpp index 34bbf421c..c3e343e0c 100644 --- a/src/core/border_router/routing_manager.cpp +++ b/src/core/border_router/routing_manager.cpp @@ -2553,7 +2553,7 @@ void RoutingManager::OmrPrefixManager::Start(void) FavoredOmrPrefix favoredPrefix; DetermineFavoredPrefixInNetData(favoredPrefix); - SetFavordPrefix(favoredPrefix); + SetFavoredPrefix(favoredPrefix); } void RoutingManager::OmrPrefixManager::Stop(void) @@ -2625,7 +2625,7 @@ exit: return error; } -void RoutingManager::OmrPrefixManager::SetFavordPrefix(const OmrPrefix &aOmrPrefix) +void RoutingManager::OmrPrefixManager::SetFavoredPrefix(const OmrPrefix &aOmrPrefix) { FavoredOmrPrefix oldFavoredPrefix = mFavoredPrefix; @@ -2732,18 +2732,18 @@ void RoutingManager::OmrPrefixManager::Evaluate(void) if (mLocalPrefix.IsEmpty()) { - SetFavordPrefix(favoredPrefix); + SetFavoredPrefix(favoredPrefix); ExitNow(); } if (favoredPrefix.IsEmpty() || favoredPrefix.GetPreference() < mLocalPrefix.GetPreference()) { SuccessOrExit(AddLocalToNetData()); - SetFavordPrefix(mLocalPrefix); + SetFavoredPrefix(mLocalPrefix); ExitNow(); } - SetFavordPrefix(favoredPrefix); + SetFavoredPrefix(favoredPrefix); if (favoredPrefix.GetPrefix() == mLocalPrefix.GetPrefix()) { diff --git a/src/core/border_router/routing_manager.hpp b/src/core/border_router/routing_manager.hpp index c813b48de..a54fc8209 100644 --- a/src/core/border_router/routing_manager.hpp +++ b/src/core/border_router/routing_manager.hpp @@ -1337,8 +1337,8 @@ private: typedef String InfoString; - void SetFavordPrefix(const OmrPrefix &aOmrPrefix); - void ClearFavoredPrefix(void) { SetFavordPrefix(OmrPrefix()); } + void SetFavoredPrefix(const OmrPrefix &aOmrPrefix); + void ClearFavoredPrefix(void) { SetFavoredPrefix(OmrPrefix()); } void DetermineFavoredPrefixInNetData(FavoredOmrPrefix &aFavoredPrefix); void UpdateLocalPrefix(void); Error AddLocalToNetData(void);