diff --git a/src/cli/cli_joiner.cpp b/src/cli/cli_joiner.cpp index 6a7bbafd7..4a008813d 100644 --- a/src/cli/cli_joiner.cpp +++ b/src/cli/cli_joiner.cpp @@ -157,12 +157,12 @@ template <> otError Joiner::Process(Arg aArgs[]) VerifyOrExit(!aArgs[0].IsEmpty(), error = OT_ERROR_INVALID_ARGS); error = otJoinerStart(GetInstancePtr(), - aArgs[0].GetCString(), // aPskd - aArgs[1].GetCString(), // aProvisioningUrl (`nullptr` if aArgs[1] is empty) - PACKAGE_NAME, // aVendorName - OPENTHREAD_CONFIG_PLATFORM_INFO, // aVendorModel - PACKAGE_VERSION, // aVendorSwVersion - nullptr, // aVendorData + aArgs[0].GetCString(), // aPskd + aArgs[1].GetCString(), // aProvisioningUrl (`nullptr` if aArgs[1] is empty) + otThreadGetVendorName(GetInstancePtr()), // aVendorName + otThreadGetVendorModel(GetInstancePtr()), // aVendorModel + otThreadGetVendorSwVersion(GetInstancePtr()), // aVendorSwVersion + nullptr, // aVendorData &Joiner::HandleCallback, this); exit: