Skip to content

Commit

Permalink
Merge 5da6b7b into 52f66e1
Browse files Browse the repository at this point in the history
  • Loading branch information
KishorSilabs authored Dec 21, 2023
2 parents 52f66e1 + 5da6b7b commit 2302144
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions examples/platform/silabs/FreeRTOSConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,11 @@ See http://www.FreeRTOS.org/RTOS-Cortex-M3-M4.html. */
#ifndef configTOTAL_HEAP_SIZE
#ifdef SL_WIFI
#ifdef DIC_ENABLE
#ifdef SIWX_917
#define configTOTAL_HEAP_SIZE ((size_t) ((75 + EXTRA_HEAP_k) * 1024))
#else
#define configTOTAL_HEAP_SIZE ((size_t) ((68 + EXTRA_HEAP_k) * 1024))
#endif // SIWX_917
#else
#define configTOTAL_HEAP_SIZE ((size_t) ((42 + EXTRA_HEAP_k) * 1024))
#endif // DIC
Expand Down
4 changes: 3 additions & 1 deletion examples/platform/silabs/SiWx917/SiWx917/sl_wifi_if.c
Original file line number Diff line number Diff line change
Expand Up @@ -783,9 +783,11 @@ void * wfx_rsi_alloc_pkt(uint16_t data_length)

status = sl_si91x_allocate_command_buffer(&buffer, (void **) &packet, sizeof(sl_si91x_packet_t) + data_length,
SL_WIFI_ALLOCATE_COMMAND_BUFFER_WAIT_TIME_MS);
if (packet == NULL)
if ((packet == NULL) || (status != SL_STATUS_OK))
{
return SL_STATUS_ALLOCATION_FAILED;
SILABS_LOG("packet allocation failed: %d", status);
return (void *) SL_STATUS_ALLOCATION_FAILED;
}
return (void *) packet;
}
Expand Down

0 comments on commit 2302144

Please sign in to comment.