mirror of
https://github.com/espressif/openthread.git
synced 2026-08-21 01:49:52 +00:00
[border-agent] remove the OT_CHANGED_BORDER_AGENT_STATE enumeration (#4788)
This commit is contained in:
committed by
Jonathan Hui
parent
58e771cbad
commit
881c7eb784
@@ -145,12 +145,11 @@ enum
|
||||
OT_CHANGED_SECURITY_POLICY = 1 << 20, ///< Security Policy changed
|
||||
OT_CHANGED_CHANNEL_MANAGER_NEW_CHANNEL = 1 << 21, ///< Channel Manager new pending Thread channel changed
|
||||
OT_CHANGED_SUPPORTED_CHANNEL_MASK = 1 << 22, ///< Supported channel mask changed
|
||||
OT_CHANGED_BORDER_AGENT_STATE = 1 << 23, ///< Border agent state changed
|
||||
OT_CHANGED_COMMISSIONER_STATE = 1 << 23, ///< Commissioner state changed
|
||||
OT_CHANGED_THREAD_NETIF_STATE = 1 << 24, ///< Thread network interface state changed
|
||||
OT_CHANGED_THREAD_BACKBONE_ROUTER_STATE = 1 << 25, ///< Backbone Router state changed
|
||||
OT_CHANGED_THREAD_BACKBONE_ROUTER_LOCAL = 1 << 26, ///< Local Backbone Router configuration changed
|
||||
OT_CHANGED_JOINER_STATE = 1 << 27, ///< Joiner state changed
|
||||
OT_CHANGED_COMMISSIONER_STATE = 1 << 28, ///< Commissioner state changed
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
@@ -308,18 +308,14 @@ const char *Notifier::FlagToString(otChangedFlags aFlag) const
|
||||
retval = "ChanMask";
|
||||
break;
|
||||
|
||||
case OT_CHANGED_BORDER_AGENT_STATE:
|
||||
retval = "BorderAgentState";
|
||||
case OT_CHANGED_COMMISSIONER_STATE:
|
||||
retval = "CommissionerState";
|
||||
break;
|
||||
|
||||
case OT_CHANGED_THREAD_NETIF_STATE:
|
||||
retval = "NetifState";
|
||||
break;
|
||||
|
||||
case OT_CHANGED_COMMISSIONER_STATE:
|
||||
retval = "CommissionerState";
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -743,7 +743,6 @@ void BorderAgent::SetState(otBorderAgentState aState)
|
||||
if (mState != aState)
|
||||
{
|
||||
mState = aState;
|
||||
Get<Notifier>().Signal(OT_CHANGED_BORDER_AGENT_STATE);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user