From 159672429591f14192745e6857a84a4b8c08118e Mon Sep 17 00:00:00 2001 From: mkardous-silabs <84793247+mkardous-silabs@users.noreply.github.com> Date: Mon, 20 Feb 2023 11:55:04 -0500 Subject: [PATCH] Fix init order (#25192) --- examples/platform/silabs/SiWx917/matter_config.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/platform/silabs/SiWx917/matter_config.cpp b/examples/platform/silabs/SiWx917/matter_config.cpp index fc2f2f53c95272..49339e64e33cb7 100644 --- a/examples/platform/silabs/SiWx917/matter_config.cpp +++ b/examples/platform/silabs/SiWx917/matter_config.cpp @@ -96,8 +96,6 @@ CHIP_ERROR SI917MatterConfig::InitMatter(const char * appName) #ifdef HEAP_MONITORING MemMonitoring::startHeapMonitoring(); #endif - SetDeviceInstanceInfoProvider(&EFR32::EFR32DeviceDataProvider::GetDeviceDataProvider()); - SetCommissionableDataProvider(&EFR32::EFR32DeviceDataProvider::GetDeviceDataProvider()); //============================================== // Init Matter Stack @@ -115,6 +113,9 @@ CHIP_ERROR SI917MatterConfig::InitMatter(const char * appName) } ReturnErrorOnFailure(PlatformMgr().InitChipStack()); + SetDeviceInstanceInfoProvider(&EFR32::EFR32DeviceDataProvider::GetDeviceDataProvider()); + SetCommissionableDataProvider(&EFR32::EFR32DeviceDataProvider::GetDeviceDataProvider()); + chip::DeviceLayer::ConnectivityMgr().SetBLEDeviceName(appName); // Stop Matter event handling while setting up resources