Skip to content

Commit

Permalink
Added changes for the power cycle issue
Browse files Browse the repository at this point in the history
  • Loading branch information
shgutte committed Oct 19, 2023
1 parent 9f37258 commit b8fadd0
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions examples/platform/silabs/SiWx917/SiWx917/sl_wifi_if.c
Original file line number Diff line number Diff line change
Expand Up @@ -401,13 +401,15 @@ static void wfx_rsi_save_ap_info() // translation
}
wfx_rsi.dev_state |= WFX_RSI_ST_SCANSTARTED;
sl_status_t status = SL_STATUS_OK;
sl_wifi_scan_configuration_t wifi_scan_configuration = { 0 };
wifi_scan_configuration = default_wifi_scan_configuration;
// TODO: this changes will be reverted back after the SDK team fix the scan API
// sl_wifi_scan_configuration_t wifi_scan_configuration = { 0 };
// wifi_scan_configuration = default_wifi_scan_configuration;
sl_wifi_ssid_t ssid_arg;
ssid_arg.length = strlen(wfx_rsi.sec.ssid);
memcpy(ssid_arg.value, (int8_t *) &wfx_rsi.sec.ssid[0], ssid_arg.length);
sl_wifi_set_scan_callback(scan_callback_handler, NULL);
status = sl_wifi_start_scan(SL_WIFI_CLIENT_2_4GHZ_INTERFACE, &ssid_arg, &wifi_scan_configuration);
// TODO: this changes will be reverted back after the SDK team fix the scan API
//status = sl_wifi_start_scan(SL_WIFI_CLIENT_2_4GHZ_INTERFACE, &ssid_arg, &wifi_scan_configuration);
if (SL_STATUS_IN_PROGRESS == status)
{
const uint32_t start = osKernelGetTickCount();
Expand Down

0 comments on commit b8fadd0

Please sign in to comment.