Skip to content

Commit

Permalink
Added changes for power cycle
Browse files Browse the repository at this point in the history
  • Loading branch information
shgutte committed Oct 19, 2023
1 parent 958a2c3 commit dd109f4
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions examples/platform/silabs/SiWx917/SiWx917/sl_wifi_if.c
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ static void wfx_rsi_save_ap_info() // translation
if (SL_STATUS_IN_PROGRESS == status)
{
uint32_t start = osKernelGetTickCount();
while (!scan_results_complete || (osKernelGetTickCount() - start) <= WIFI_SCAN_TIMEOUT_TICK)
while (!scan_results_complete && (osKernelGetTickCount() - start) <= WIFI_SCAN_TIMEOUT_TICK)
{
osThreadYield();
}
Expand Down Expand Up @@ -636,8 +636,12 @@ void wfx_rsi_task(void * arg)
}
if (flags & WFX_EVT_STA_START_JOIN)
{
// saving the AP related info
wfx_rsi_save_ap_info();
if(!(wfx_rsi.join_retries > 0)) {
// saving the AP related info
wfx_rsi_save_ap_info();
}


// Joining to the network
status = wfx_rsi_do_join();
}
Expand Down

0 comments on commit dd109f4

Please sign in to comment.