Skip to content

Commit 3406886

Browse files
jmartinez-silabspull[bot]
authored andcommitted
ICD manager Implemenation (#27283)
* Add Events for ICD (WIP) * Rename SED defines, Add some timer funcionality to Extend a existing timer. Implemented ICDModes and initial operationalState logic WIP * Change SetFastPolling and SetSlowPolling to setPollingInterval with a param. Call is handled by ICD Manager. Replace the sed ifdef by icd for silabs platform WIP * Fix a bunch of dependencies, includes and build issues WIP * Use a init function instead of the constructor, as the attributes value aren't ready * Add a Keep active mechanism for commisisoning window and failsafe * cleanup, add app user wakeup change #ifdef to #if fix missing rename. add // nogncheck on some conditional include Fix some error caught by the ci * Addresses comments + conditional define for tests * SetPollingInterval causes issue for apps that has both thread and wifi. Priority to the thread imp for now. Needs to be reworked * Rebase, It brings updated system Apis, And addresse most of the comments * Stay active when an exchange context expect a response. * Update The message rx handling event naming. Move related ICD events to PublicEventTypes for the time being * #if ICD_SERVER the icd related event posts * Address comments and nits
1 parent 41cbadd commit 3406886

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+707
-185
lines changed

examples/contact-sensor-app/nxp/k32w/k32w0/include/CHIPProjectConfig.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -191,8 +191,8 @@
191191
#define CHIP_CONFIG_MAX_FABRICS 5 // 5 is the minimum number of supported fabrics
192192

193193
#define CHIP_DEVICE_CONFIG_ENABLE_SED 1
194-
#define CHIP_DEVICE_CONFIG_SED_IDLE_INTERVAL 1000_ms32
195-
#define CHIP_DEVICE_CONFIG_SED_ACTIVE_INTERVAL 100_ms32
194+
#define CHIP_DEVICE_CONFIG_ICD_SLOW_POLL_INTERVAL 1000_ms32
195+
#define CHIP_DEVICE_CONFIG_ICD_FAST_POLL_INTERVAL 100_ms32
196196
/**
197197
* @def CHIP_IM_MAX_NUM_COMMAND_HANDLER
198198
*

examples/light-switch-app/silabs/src/AppTask.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ void AppTask::AppTaskMain(void * pvParameter)
119119
appError(err);
120120
}
121121

122-
#if !(defined(CHIP_DEVICE_CONFIG_ENABLE_SED) && CHIP_DEVICE_CONFIG_ENABLE_SED)
122+
#if !(defined(CHIP_CONFIG_ENABLE_ICD_SERVER) && CHIP_CONFIG_ENABLE_ICD_SERVER)
123123
sAppTask.StartStatusLEDTimer();
124124
#endif
125125

examples/lighting-app/silabs/src/AppTask.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ void AppTask::AppTaskMain(void * pvParameter)
126126
appError(err);
127127
}
128128

129-
#if !(defined(CHIP_DEVICE_CONFIG_ENABLE_SED) && CHIP_DEVICE_CONFIG_ENABLE_SED)
129+
#if !(defined(CHIP_CONFIG_ENABLE_ICD_SERVER) && CHIP_CONFIG_ENABLE_ICD_SERVER)
130130
sAppTask.StartStatusLEDTimer();
131131
#endif
132132

examples/lock-app/nxp/k32w/k32w0/include/CHIPProjectConfig.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -182,8 +182,8 @@
182182
#define CHIP_CONFIG_MAX_FABRICS 5 // 5 is the minimum number of supported fabrics
183183

184184
#define CHIP_DEVICE_CONFIG_ENABLE_SED 1
185-
#define CHIP_DEVICE_CONFIG_SED_IDLE_INTERVAL 1000_ms32
186-
#define CHIP_DEVICE_CONFIG_SED_ACTIVE_INTERVAL 100_ms32
185+
#define CHIP_DEVICE_CONFIG_ICD_SLOW_POLL_INTERVAL 1000_ms32
186+
#define CHIP_DEVICE_CONFIG_ICD_FAST_POLL_INTERVAL 100_ms32
187187

188188
/**
189189
* CHIP_CONFIG_EVENT_LOGGING_DEFAULT_IMPORTANCE

examples/lock-app/silabs/src/AppTask.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ void AppTask::AppTaskMain(void * pvParameter)
219219
appError(err);
220220
}
221221

222-
#if !(defined(CHIP_DEVICE_CONFIG_ENABLE_SED) && CHIP_DEVICE_CONFIG_ENABLE_SED)
222+
#if !(defined(CHIP_CONFIG_ENABLE_ICD_SERVER) && CHIP_CONFIG_ENABLE_ICD_SERVER)
223223
sAppTask.StartStatusLEDTimer();
224224
#endif
225225

examples/platform/silabs/ICDSubscriptionCallback.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ CHIP_ERROR ICDSubscriptionCallback::OnSubscriptionRequested(chip::app::ReadHandl
2424
{
2525
using namespace chip::System::Clock;
2626

27-
Seconds32 interval_s32 = std::chrono::duration_cast<Seconds32>(CHIP_DEVICE_CONFIG_SED_IDLE_INTERVAL);
27+
Seconds32 interval_s32 = std::chrono::duration_cast<Seconds32>(CHIP_DEVICE_CONFIG_ICD_SLOW_POLL_INTERVAL);
2828

2929
if (interval_s32 > Seconds16::max())
3030
{

examples/platform/silabs/SiWx917/BaseApplication.cpp

+13-13
Original file line numberDiff line numberDiff line change
@@ -94,14 +94,14 @@ app::Clusters::NetworkCommissioning::Instance
9494
sWiFiNetworkCommissioningInstance(0 /* Endpoint Id */, &(NetworkCommissioning::SlWiFiDriver::GetInstance()));
9595
#endif /* SL_WIFI */
9696

97-
#if !(defined(CHIP_DEVICE_CONFIG_ENABLE_SED) && CHIP_DEVICE_CONFIG_ENABLE_SED)
97+
#if !(defined(CHIP_CONFIG_ENABLE_ICD_SERVER) && CHIP_CONFIG_ENABLE_ICD_SERVER)
9898

9999
bool sIsProvisioned = false;
100100
bool sIsEnabled = false;
101101
bool sIsAttached = false;
102102
bool sHaveBLEConnections = false;
103103

104-
#endif // CHIP_DEVICE_CONFIG_ENABLE_SED
104+
#endif // CHIP_CONFIG_ENABLE_ICD_SERVER
105105

106106
uint8_t sAppEventQueueBuffer[APP_EVENT_QUEUE_SIZE * sizeof(AppEvent)];
107107
StaticQueue_t sAppEventQueueStruct;
@@ -257,9 +257,9 @@ void BaseApplication::FunctionFactoryReset(void)
257257
// Actually trigger Factory Reset
258258
mFunction = kFunction_NoneSelected;
259259

260-
#if CHIP_DEVICE_CONFIG_ENABLE_SED == 1
260+
#if CHIP_CONFIG_ENABLE_ICD_SERVER == 1
261261
StopStatusLEDTimer();
262-
#endif // CHIP_DEVICE_CONFIG_ENABLE_SED
262+
#endif // CHIP_CONFIG_ENABLE_ICD_SERVER
263263

264264
chip::Server::GetInstance().ScheduleFactoryReset();
265265
}
@@ -314,7 +314,7 @@ bool BaseApplication::ActivateStatusLedPatterns()
314314
}
315315
#endif // EMBER_AF_PLUGIN_IDENTIFY_SERVER
316316

317-
#if !(defined(CHIP_DEVICE_CONFIG_ENABLE_SED) && CHIP_DEVICE_CONFIG_ENABLE_SED)
317+
#if !(defined(CHIP_CONFIG_ENABLE_ICD_SERVER) && CHIP_CONFIG_ENABLE_ICD_SERVER)
318318
// Identify Patterns have priority over Status patterns
319319
if (!isPatternSet)
320320
{
@@ -340,7 +340,7 @@ bool BaseApplication::ActivateStatusLedPatterns()
340340
}
341341
isPatternSet = true;
342342
}
343-
#endif // CHIP_DEVICE_CONFIG_ENABLE_SED
343+
#endif // CHIP_CONFIG_ENABLE_ICD_SERVER
344344
#endif // ENABLE_WSTK_LEDS) && SL_CATALOG_SIMPLE_LED_LED1_PRESENT
345345
return isPatternSet;
346346
}
@@ -352,7 +352,7 @@ void BaseApplication::LightEventHandler()
352352
// locked while these values are queried. However we use a non-blocking
353353
// lock request (TryLockCHIPStack()) to avoid blocking other UI activities
354354
// when the CHIP task is busy (e.g. with a long crypto operation).
355-
#if !(defined(CHIP_DEVICE_CONFIG_ENABLE_SED) && CHIP_DEVICE_CONFIG_ENABLE_SED)
355+
#if !(defined(CHIP_CONFIG_ENABLE_ICD_SERVER) && CHIP_CONFIG_ENABLE_ICD_SERVER)
356356
if (PlatformMgr().TryLockChipStack())
357357
{
358358
#ifdef SL_WIFI
@@ -368,7 +368,7 @@ void BaseApplication::LightEventHandler()
368368
sHaveBLEConnections = (ConnectivityMgr().NumBLEConnections() != 0);
369369
PlatformMgr().UnlockChipStack();
370370
}
371-
#endif // CHIP_DEVICE_CONFIG_ENABLE_SED
371+
#endif // CHIP_CONFIG_ENABLE_ICD_SERVER
372372

373373
// Update the status LED if factory reset has not been initiated.
374374
//
@@ -441,7 +441,7 @@ void BaseApplication::ButtonHandler(AppEvent * aEvent)
441441
{
442442
mFunction = kFunction_NoneSelected;
443443

444-
#if CHIP_DEVICE_CONFIG_ENABLE_SED == 1
444+
#if CHIP_CONFIG_ENABLE_ICD_SERVER == 1
445445
StopStatusLEDTimer();
446446
#endif
447447

@@ -514,7 +514,7 @@ void BaseApplication::OnIdentifyStart(Identify * identify)
514514
{
515515
ChipLogProgress(Zcl, "onIdentifyStart");
516516

517-
#if CHIP_DEVICE_CONFIG_ENABLE_SED == 1
517+
#if CHIP_CONFIG_ENABLE_ICD_SERVER == 1
518518
StartStatusLEDTimer();
519519
#endif
520520
}
@@ -523,7 +523,7 @@ void BaseApplication::OnIdentifyStop(Identify * identify)
523523
{
524524
ChipLogProgress(Zcl, "onIdentifyStop");
525525

526-
#if CHIP_DEVICE_CONFIG_ENABLE_SED == 1
526+
#if CHIP_CONFIG_ENABLE_ICD_SERVER == 1
527527
StopStatusLEDTimer();
528528
#endif
529529
}
@@ -533,7 +533,7 @@ void BaseApplication::OnTriggerIdentifyEffectCompleted(chip::System::Layer * sys
533533
ChipLogProgress(Zcl, "Trigger Identify Complete");
534534
sIdentifyEffect = Clusters::Identify::EffectIdentifierEnum::kStopEffect;
535535

536-
#if CHIP_DEVICE_CONFIG_ENABLE_SED == 1
536+
#if CHIP_CONFIG_ENABLE_ICD_SERVER == 1
537537
StopStatusLEDTimer();
538538
#endif
539539
}
@@ -547,7 +547,7 @@ void BaseApplication::OnTriggerIdentifyEffect(Identify * identify)
547547
ChipLogDetail(AppServer, "Identify Effect Variant unsupported. Using default");
548548
}
549549

550-
#if CHIP_DEVICE_CONFIG_ENABLE_SED == 1
550+
#if CHIP_CONFIG_ENABLE_ICD_SERVER == 1
551551
StartStatusLEDTimer();
552552
#endif
553553

examples/platform/silabs/efr32/BUILD.gn

+2-1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
import("//build_overrides/chip.gni")
1616
import("//build_overrides/efr32_sdk.gni")
1717
import("${chip_root}/examples/common/pigweed/pigweed_rpcs.gni")
18+
import("${chip_root}/src/app/icd/icd.gni")
1819
import("${chip_root}/src/lib/lib.gni")
1920
import("${chip_root}/src/platform/device.gni")
2021
import("${efr32_sdk_build_root}/efr32_sdk.gni")
@@ -40,7 +41,7 @@ declare_args() {
4041
chip_default_wifi_psk = ""
4142

4243
# Use default handler to negotiate subscription max interval
43-
chip_config_use_icd_subscription_callbacks = enable_sleepy_device
44+
chip_config_use_icd_subscription_callbacks = chip_enable_icd_server
4445

4546
# Enable TestEventTrigger in GeneralDiagnostics cluster
4647
silabs_test_event_trigger_enabled = false

examples/platform/silabs/efr32/BaseApplication.cpp

+26-16
Original file line numberDiff line numberDiff line change
@@ -107,11 +107,11 @@ app::Clusters::NetworkCommissioning::Instance
107107

108108
bool sIsProvisioned = false;
109109

110-
#if !(defined(CHIP_DEVICE_CONFIG_ENABLE_SED) && CHIP_DEVICE_CONFIG_ENABLE_SED)
110+
#if !(defined(CHIP_CONFIG_ENABLE_ICD_SERVER) && CHIP_CONFIG_ENABLE_ICD_SERVER)
111111
bool sIsEnabled = false;
112112
bool sIsAttached = false;
113113
bool sHaveBLEConnections = false;
114-
#endif // CHIP_DEVICE_CONFIG_ENABLE_SED
114+
#endif // CHIP_CONFIG_ENABLE_ICD_SERVER
115115

116116
uint8_t sAppEventQueueBuffer[APP_EVENT_QUEUE_SIZE * sizeof(AppEvent)];
117117
StaticQueue_t sAppEventQueueStruct;
@@ -273,9 +273,9 @@ void BaseApplication::FunctionEventHandler(AppEvent * aEvent)
273273
// cancel, if required.
274274
StartFunctionTimer(FACTORY_RESET_CANCEL_WINDOW_TIMEOUT);
275275

276-
#if CHIP_DEVICE_CONFIG_ENABLE_SED == 1
276+
#if CHIP_CONFIG_ENABLE_ICD_SERVER == 1
277277
StartStatusLEDTimer();
278-
#endif // CHIP_DEVICE_CONFIG_ENABLE_SED
278+
#endif // CHIP_CONFIG_ENABLE_ICD_SERVER
279279

280280
mFunction = kFunction_FactoryReset;
281281

@@ -291,9 +291,9 @@ void BaseApplication::FunctionEventHandler(AppEvent * aEvent)
291291
// Actually trigger Factory Reset
292292
mFunction = kFunction_NoneSelected;
293293

294-
#if CHIP_DEVICE_CONFIG_ENABLE_SED == 1
294+
#if CHIP_CONFIG_ENABLE_ICD_SERVER == 1
295295
StopStatusLEDTimer();
296-
#endif // CHIP_DEVICE_CONFIG_ENABLE_SED
296+
#endif // CHIP_CONFIG_ENABLE_ICD_SERVER
297297

298298
ScheduleFactoryReset();
299299
}
@@ -349,7 +349,7 @@ bool BaseApplication::ActivateStatusLedPatterns()
349349
}
350350
#endif // EMBER_AF_PLUGIN_IDENTIFY_SERVER
351351

352-
#if !(defined(CHIP_DEVICE_CONFIG_ENABLE_SED) && CHIP_DEVICE_CONFIG_ENABLE_SED)
352+
#if !(defined(CHIP_CONFIG_ENABLE_ICD_SERVER) && CHIP_CONFIG_ENABLE_ICD_SERVER)
353353
// Identify Patterns have priority over Status patterns
354354
if (!isPatternSet)
355355
{
@@ -375,7 +375,7 @@ bool BaseApplication::ActivateStatusLedPatterns()
375375
}
376376
isPatternSet = true;
377377
}
378-
#endif // CHIP_DEVICE_CONFIG_ENABLE_SED
378+
#endif // CHIP_CONFIG_ENABLE_ICD_SERVER
379379
#endif // ENABLE_WSTK_LEDS) && SL_CATALOG_SIMPLE_LED_LED1_PRESENT
380380
return isPatternSet;
381381
}
@@ -387,7 +387,7 @@ void BaseApplication::LightEventHandler()
387387
// locked while these values are queried. However we use a non-blocking
388388
// lock request (TryLockCHIPStack()) to avoid blocking other UI activities
389389
// when the CHIP task is busy (e.g. with a long crypto operation).
390-
#if !(defined(CHIP_DEVICE_CONFIG_ENABLE_SED) && CHIP_DEVICE_CONFIG_ENABLE_SED)
390+
#if !(defined(CHIP_CONFIG_ENABLE_ICD_SERVER) && CHIP_CONFIG_ENABLE_ICD_SERVER)
391391
if (PlatformMgr().TryLockChipStack())
392392
{
393393
#ifdef SL_WIFI
@@ -402,7 +402,7 @@ void BaseApplication::LightEventHandler()
402402
sHaveBLEConnections = (ConnectivityMgr().NumBLEConnections() != 0);
403403
PlatformMgr().UnlockChipStack();
404404
}
405-
#endif // CHIP_DEVICE_CONFIG_ENABLE_SED
405+
#endif // CHIP_CONFIG_ENABLE_ICD_SERVER
406406

407407
#if defined(ENABLE_WSTK_LEDS) && defined(SL_CATALOG_SIMPLE_LED_LED1_PRESENT)
408408
// Update the status LED if factory reset has not been initiated.
@@ -472,13 +472,23 @@ void BaseApplication::ButtonHandler(AppEvent * aEvent)
472472
SILABS_LOG("Failed to open the Basic Commissioning Window");
473473
}
474474
}
475-
else { SILABS_LOG("Network is already provisioned, Ble advertissement not enabled"); }
475+
else
476+
{
477+
SILABS_LOG("Network is already provisioned, Ble advertissement not enabled");
478+
DeviceLayer::ChipDeviceEvent event;
479+
event.Type = DeviceLayer::DeviceEventType::kAppWakeUpEvent;
480+
CHIP_ERROR err = DeviceLayer::PlatformMgr().PostEvent(&event);
481+
if (err != CHIP_NO_ERROR)
482+
{
483+
ChipLogError(AppServer, "Failed to post App wake up Event event %" CHIP_ERROR_FORMAT, err.Format());
484+
}
485+
}
476486
}
477487
else if (mFunctionTimerActive && mFunction == kFunction_FactoryReset)
478488
{
479489
CancelFunctionTimer();
480490

481-
#if CHIP_DEVICE_CONFIG_ENABLE_SED == 1
491+
#if CHIP_CONFIG_ENABLE_ICD_SERVER == 1
482492
StopStatusLEDTimer();
483493
#endif
484494

@@ -548,7 +558,7 @@ void BaseApplication::OnIdentifyStart(Identify * identify)
548558
{
549559
ChipLogProgress(Zcl, "onIdentifyStart");
550560

551-
#if CHIP_DEVICE_CONFIG_ENABLE_SED == 1
561+
#if CHIP_CONFIG_ENABLE_ICD_SERVER == 1
552562
StartStatusLEDTimer();
553563
#endif
554564
}
@@ -557,7 +567,7 @@ void BaseApplication::OnIdentifyStop(Identify * identify)
557567
{
558568
ChipLogProgress(Zcl, "onIdentifyStop");
559569

560-
#if CHIP_DEVICE_CONFIG_ENABLE_SED == 1
570+
#if CHIP_CONFIG_ENABLE_ICD_SERVER == 1
561571
StopStatusLEDTimer();
562572
#endif
563573
}
@@ -567,7 +577,7 @@ void BaseApplication::OnTriggerIdentifyEffectCompleted(chip::System::Layer * sys
567577
ChipLogProgress(Zcl, "Trigger Identify Complete");
568578
sIdentifyEffect = Clusters::Identify::EffectIdentifierEnum::kStopEffect;
569579

570-
#if CHIP_DEVICE_CONFIG_ENABLE_SED == 1
580+
#if CHIP_CONFIG_ENABLE_ICD_SERVER == 1
571581
StopStatusLEDTimer();
572582
#endif
573583
}
@@ -581,7 +591,7 @@ void BaseApplication::OnTriggerIdentifyEffect(Identify * identify)
581591
ChipLogDetail(AppServer, "Identify Effect Variant unsupported. Using default");
582592
}
583593

584-
#if CHIP_DEVICE_CONFIG_ENABLE_SED == 1
594+
#if CHIP_CONFIG_ENABLE_ICD_SERVER == 1
585595
StartStatusLEDTimer();
586596
#endif
587597

examples/platform/silabs/efr32/matter_config.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -100,11 +100,11 @@ CHIP_ERROR SilabsMatterConfig::InitOpenThread(void)
100100
#if CHIP_DEVICE_CONFIG_THREAD_FTD
101101
ReturnErrorOnFailure(ConnectivityMgr().SetThreadDeviceType(ConnectivityManager::kThreadDeviceType_Router));
102102
#else // CHIP_DEVICE_CONFIG_THREAD_FTD
103-
#if CHIP_DEVICE_CONFIG_ENABLE_SED
103+
#if CHIP_CONFIG_ENABLE_ICD_SERVER
104104
ReturnErrorOnFailure(ConnectivityMgr().SetThreadDeviceType(ConnectivityManager::kThreadDeviceType_SleepyEndDevice));
105-
#else // CHIP_DEVICE_CONFIG_ENABLE_SED
105+
#else // CHIP_CONFIG_ENABLE_ICD_SERVER
106106
ReturnErrorOnFailure(ConnectivityMgr().SetThreadDeviceType(ConnectivityManager::kThreadDeviceType_MinimalEndDevice));
107-
#endif // CHIP_DEVICE_CONFIG_ENABLE_SED
107+
#endif // CHIP_CONFIG_ENABLE_ICD_SERVER
108108
#endif // CHIP_DEVICE_CONFIG_THREAD_FTD
109109

110110
SILABS_LOG("Starting OpenThread task");

examples/platform/silabs/efr32/project_include/OpenThreadConfig.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
// Enable use of external heap allocator (calloc/free) for OpenThread.
3737
#define OPENTHREAD_CONFIG_HEAP_EXTERNAL_ENABLE 1
3838

39-
#if CHIP_DEVICE_CONFIG_ENABLE_SED
39+
#if CHIP_CONFIG_ENABLE_ICD_SERVER
4040

4141
#define OPENTHREAD_CONFIG_PARENT_SEARCH_ENABLE 0
4242

@@ -46,7 +46,7 @@
4646
// Timeout after 2 missed checkin or 4 mins if sleep interval is too short.
4747
#define OPENTHREAD_CONFIG_MLE_CHILD_TIMEOUT_DEFAULT ((SL_MLE_TIMEOUT_s < 120) ? 240 : ((SL_MLE_TIMEOUT_s * 2) + 1))
4848

49-
#endif // CHIP_DEVICE_CONFIG_ENABLE_SED
49+
#endif // CHIP_CONFIG_ENABLE_ICD_SERVER
5050

5151
/****Uncomment below section for OpenThread Debug logs*/
5252
// #define OPENTHREAD_CONFIG_LOG_LEVEL OT_LOG_LEVEL_DEBG

examples/platform/silabs/efr32/rs911x/rsi_if.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ int32_t wfx_rsi_disconnect()
184184
return status;
185185
}
186186

187-
#if CHIP_DEVICE_CONFIG_ENABLE_SED
187+
#if CHIP_CONFIG_ENABLE_ICD_SERVER
188188
/******************************************************************
189189
* @fn wfx_rsi_power_save()
190190
* @brief
@@ -215,7 +215,7 @@ int32_t wfx_rsi_power_save()
215215
SILABS_LOG("Powersave Config Success");
216216
return status;
217217
}
218-
#endif /* CHIP_DEVICE_CONFIG_ENABLE_SED */
218+
#endif /* CHIP_CONFIG_ENABLE_ICD_SERVER */
219219

220220
/******************************************************************
221221
* @fn wfx_rsi_join_cb(uint16_t status, const uint8_t *buf, const uint16_t len)

examples/platform/silabs/efr32/rs911x/wfx_rsi.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,9 @@ int32_t wfx_rsi_get_ap_info(wfx_wifi_scan_result_t * ap);
9090
int32_t wfx_rsi_get_ap_ext(wfx_wifi_scan_ext_t * extra_info);
9191
int32_t wfx_rsi_reset_count();
9292
int32_t wfx_rsi_disconnect();
93-
#if CHIP_DEVICE_CONFIG_ENABLE_SED
93+
#if CHIP_CONFIG_ENABLE_ICD_SERVER
9494
int32_t wfx_rsi_power_save();
95-
#endif /* CHIP_DEVICE_CONFIG_ENABLE_SED */
95+
#endif /* CHIP_CONFIG_ENABLE_ICD_SERVER */
9696

9797
#ifdef __cplusplus
9898
}

0 commit comments

Comments
 (0)