Skip to content

Commit

Permalink
[epskc] enable by default for Thread 1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
yuzhyang committed Aug 19, 2024
1 parent 92ac6cb commit d47d09a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/border_agent/border_agent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
#include <openthread/border_routing.h>
#include <openthread/random_noncrypto.h>
#include <openthread/thread_ftd.h>
#include <openthread/thread.h>
#include <openthread/platform/settings.h>
#include <openthread/platform/toolchain.h>

Expand Down Expand Up @@ -157,12 +158,14 @@ BorderAgent::BorderAgent(otbr::Ncp::RcpHost &aHost, Mdns::Publisher &aPublisher)
: mHost(aHost)
, mPublisher(aPublisher)
, mIsEnabled(false)
, mIsEphemeralKeyEnabled(false)
, mIsEphemeralKeyEnabled(OTBR_CONFIG_BORDER_AGENT_EPHEMERAL_KEY_ON_INIT)
, mVendorName(OTBR_VENDOR_NAME)
, mProductName(OTBR_PRODUCT_NAME)
, mBaseServiceInstanceName(OTBR_MESHCOP_SERVICE_INSTANCE_NAME)
{
mHost.AddThreadStateChangedCallback([this](otChangedFlags aFlags) { HandleThreadStateChanged(aFlags); });
mIsEphemeralKeyEnabled = (otThreadGetVersion() >= OT_THREAD_VERrSION_1_4);
otbrLogInfo("Ephemeral Key is: %s during initialization", (mIsEphemeralKeyEnabled ? "enabled" : "disabled"));
}

otbrError BorderAgent::SetMeshCopServiceValues(const std::string &aServiceInstanceName,
Expand Down

0 comments on commit d47d09a

Please sign in to comment.