From a68b30ac80c9a79a9481d01c4c20449a8939df27 Mon Sep 17 00:00:00 2001 From: Esko Dijk Date: Mon, 26 Jan 2026 20:15:21 +0100 Subject: [PATCH] [cli] `joiner start` to use correct VendorInfo data (#12332) This updates the Joiner CLI to use the correct VendorInfo data which is configured in the build or set at runtime. Benefit is that this data is also length-checked. Previously, the command could fail when PACKAGE_VERSION was length > 16. --- src/cli/cli_joiner.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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: