Skip to content

Commit

Permalink
917 trngKey entropy only needed on 917 Soc (#32759)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmartinez-silabs authored and pull[bot] committed Apr 29, 2024
1 parent 233af7d commit d1f6852
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/platform/silabs/SiWx917/SiWx917/sl_wifi_if.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -455,6 +455,7 @@ static sl_status_t wfx_rsi_init(void)
return status;
}

#ifdef SLI_SI91X_MCU_INTERFACE
const uint32_t trngKey[TRNGKEY_SIZE] = { 0x16157E2B, 0xA6D2AE28, 0x8815F7AB, 0x3C4FCF09 };

// To check the Entropy of TRNG and verify TRNG functioning.
Expand All @@ -472,6 +473,7 @@ static sl_status_t wfx_rsi_init(void)
SILABS_LOG("TRNG Key Programming Failed");
return status;
}
#endif // SLI_SI91X_MCU_INTERFACE

wfx_rsi.events = xEventGroupCreateStatic(&rsiDriverEventGroup);
wfx_rsi.dev_state |= WFX_RSI_ST_DEV_READY;
Expand Down Expand Up @@ -928,7 +930,6 @@ void ProcessEvent(WfxEvent_t inEvent)
/* ARGSUSED */
void wfx_rsi_task(void * arg)
{
EventBits_t flags;
(void) arg;
sl_status_t status = wfx_rsi_init();

Expand Down

0 comments on commit d1f6852

Please sign in to comment.