Skip to content

Commit

Permalink
Added changes for the 917 NCP
Browse files Browse the repository at this point in the history
  • Loading branch information
shgutte committed Aug 18, 2023
1 parent 3f6b092 commit 930c68a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
4 changes: 2 additions & 2 deletions examples/platform/silabs/efr32/rs911x/hal/efx32_ncp_host.c
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ sl_status_t sl_si91x_host_init(void)
.name = "si91x_bus",
.priority = osPriorityRealtime,
.stack_mem = 0,
.stack_size = 768,
.stack_size = 1536,
.cb_mem = 0,
.cb_size = 0,
.attr_bits = 0u,
Expand All @@ -117,7 +117,7 @@ sl_status_t sl_si91x_host_init(void)
.name = "si91x_event",
.priority = osPriorityNormal,
.stack_mem = 0,
.stack_size = 768,
.stack_size = 1536,
.cb_mem = 0,
.cb_size = 0,
.attr_bits = 0u,
Expand Down
14 changes: 9 additions & 5 deletions examples/platform/silabs/efr32/rs911x/sl_wifi_if.c
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,7 @@ sl_status_t join_callback_handler(sl_wifi_event_t event, char * result, uint32_t
xEventGroupSetBits(wfx_rsi.events, WFX_EVT_STA_CONN);
wfx_rsi.join_retries = 0;
retryInterval = WLAN_MIN_RETRY_TIMER_MS;
if (is_wifi_disconnection_event)
is_wifi_disconnection_event = false;
is_wifi_disconnection_event = false;
callback_status = SL_STATUS_OK;
return SL_STATUS_OK;
}
Expand Down Expand Up @@ -236,10 +235,9 @@ int32_t wfx_rsi_power_save()
*****************************************************************************************/
int32_t wfx_wifi_rsi_init(void)
{
SILABS_LOG("wfx_wifi_rsi_init #1 ");
SILABS_LOG("wfx_wifi_rsi_init started");
sl_status_t status;
status = sl_wifi_init(&config , default_wifi_event_handler);
SILABS_LOG("wfx_wifi_rsi_init #2 ");
status = wfx_wifi_start(&config , default_wifi_event_handler);
if(status != SL_STATUS_OK){
SILABS_LOG("wfx_wifi_rsi_init failed %x", status);
return status;
Expand All @@ -258,6 +256,12 @@ int32_t wfx_wifi_rsi_init(void)
static int32_t wfx_rsi_init(void)
{
sl_status_t status;
status = wfx_wifi_rsi_init();
if(status != SL_STATUS_OK) {
SILABS_LOG("wfx_rsi_init failed %x", status);
return status;
}

status = sl_wifi_get_mac_address(SL_WIFI_CLIENT_INTERFACE, (sl_mac_address_t *) &wfx_rsi.sta_mac.octet[0]);
if (status != SL_STATUS_OK)
{
Expand Down

0 comments on commit 930c68a

Please sign in to comment.