[border-agent] change meshcop service TXT value after enabling/disabling Epskc (#11310)

This commit posts a MeshCoP service changed task after Epskc feature
is enabled/disabled.

After Epskc feature is enabled/disabled, the `EpskcSupported` bit in
the statebitmap in MeshCoP Txt value should change accordingly.
This commit is contained in:
Li Cao
2025-03-03 11:17:22 -08:00
committed by GitHub
parent 6866acc9a6
commit 75c8aed8f6
+2
View File
@@ -560,12 +560,14 @@ void BorderAgent::EphemeralKeyManager::SetEnabled(bool aEnabled)
{
VerifyOrExit(mState == kStateDisabled);
SetState(kStateStopped);
Get<BorderAgent>().PostNotifyMeshCoPServiceChangedTask();
}
else
{
VerifyOrExit(mState != kStateDisabled);
Stop();
SetState(kStateDisabled);
Get<BorderAgent>().PostNotifyMeshCoPServiceChangedTask();
}
exit: