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 b39b38e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 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,13 @@ BorderAgent::BorderAgent(otbr::Ncp::RcpHost &aHost, Mdns::Publisher &aPublisher)
: mHost(aHost)
, mPublisher(aPublisher)
, mIsEnabled(false)
, mIsEphemeralKeyEnabled(false)
, mIsEphemeralKeyEnabled(otThreadGetVersion() >= OT_THREAD_VERSION_1_4)
, mVendorName(OTBR_VENDOR_NAME)
, mProductName(OTBR_PRODUCT_NAME)
, mBaseServiceInstanceName(OTBR_MESHCOP_SERVICE_INSTANCE_NAME)
{
mHost.AddThreadStateChangedCallback([this](otChangedFlags aFlags) { HandleThreadStateChanged(aFlags); });
otbrLogInfo("Ephemeral Key is: %s during initialization", (mIsEphemeralKeyEnabled ? "enabled" : "disabled"));
}

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

0 comments on commit b39b38e

Please sign in to comment.