From 52e9ceda1cda7e0348adced8a5aafa240204a0e9 Mon Sep 17 00:00:00 2001 From: Vivien Nicolas Date: Fri, 11 Feb 2022 15:16:08 +0100 Subject: [PATCH] Use XX instead of WW in src/controller/CHIPDeviceController.cpp for unknown country code --- src/controller/CHIPDeviceController.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/controller/CHIPDeviceController.cpp b/src/controller/CHIPDeviceController.cpp index 47add2e1a4aa16..291ae58a1c9391 100644 --- a/src/controller/CHIPDeviceController.cpp +++ b/src/controller/CHIPDeviceController.cpp @@ -1794,7 +1794,7 @@ void DeviceCommissioner::PerformCommissioningStep(DeviceProxy * proxy, Commissio } static constexpr size_t kMaxCountryCodeSize = 3; - char countryCodeStr[kMaxCountryCodeSize] = "WW"; + char countryCodeStr[kMaxCountryCodeSize] = "XX"; size_t actualCountryCodeSize = 2; #if CONFIG_DEVICE_LAYER @@ -1804,7 +1804,7 @@ void DeviceCommissioner::PerformCommissioningStep(DeviceProxy * proxy, Commissio #endif if (status != CHIP_NO_ERROR) { - ChipLogError(Controller, "Unable to find country code, defaulting to WW"); + ChipLogError(Controller, "Unable to find country code, defaulting to XX"); } chip::CharSpan countryCode(countryCodeStr, actualCountryCodeSize);