From ca040f6e54047b57c6a3ce2a0c0a67bf57e5d854 Mon Sep 17 00:00:00 2001 From: KishorSilabs <112456954+KishorSilabs@users.noreply.github.com> Date: Sat, 6 Jan 2024 21:18:34 +0530 Subject: [PATCH] [Silabs][Wi-Fi]- Update to 917 soc freertos settings (#31071) * Unused variable status in sl_wifi_if.c * Increased HEAP Size for SOC DIC AWS OTA * Restyled by clang-format * Removed typo mistake * Removing the wfx_rsi_alloc_pkt API from sl_wifi_if.c as it is not being used anywhere in code for 917NCP and SOC boards. --------- Co-authored-by: Restyled.io Co-authored-by: Arun Padakanti --- examples/platform/silabs/FreeRTOSConfig.h | 4 +++ .../silabs/SiWx917/SiWx917/sl_wifi_if.c | 33 ------------------- 2 files changed, 4 insertions(+), 33 deletions(-) diff --git a/examples/platform/silabs/FreeRTOSConfig.h b/examples/platform/silabs/FreeRTOSConfig.h index 559046fc32ed03..93c7ee36444715 100644 --- a/examples/platform/silabs/FreeRTOSConfig.h +++ b/examples/platform/silabs/FreeRTOSConfig.h @@ -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 diff --git a/examples/platform/silabs/SiWx917/SiWx917/sl_wifi_if.c b/examples/platform/silabs/SiWx917/SiWx917/sl_wifi_if.c index fa177459a06e15..7655f6b48a5c59 100644 --- a/examples/platform/silabs/SiWx917/SiWx917/sl_wifi_if.c +++ b/examples/platform/silabs/SiWx917/SiWx917/sl_wifi_if.c @@ -769,39 +769,6 @@ void wfx_dhcp_got_ipv4(uint32_t ip) } #endif /* CHIP_DEVICE_CONFIG_ENABLE_IPV4 */ -#if !EXP_BOARD -/* - * WARNING - Taken from RSI and broken up - * This is my own RSI stuff for not copying code and allocating an extra - * level of indirection - when using LWIP buffers - * see also: int32_t rsi_wlan_send_data_xx(uint8_t *buffer, uint32_t length) - */ -/******************************************************************************************** - * @fn void *wfx_rsi_alloc_pkt() - * @brief - * Allocate packet to send data - * @param[in] None - * @return - * None - **********************************************************************************************/ -void * wfx_rsi_alloc_pkt(uint16_t data_length) -{ - sl_wifi_buffer_t * buffer; - sl_si91x_packet_t * packet; - sl_status_t status = SL_STATUS_OK; - - /* Confirm if packet is allocated */ - - 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) - { - return SL_STATUS_ALLOCATION_FAILED; - } - return (void *) packet; -} -#endif - /******************************************************************************************** * @fn void wfx_rsi_pkt_add_data(void *p, uint8_t *buf, uint16_t len, uint16_t off) * @brief