From ab06ec0b51491201b31653454e946fa7298bddf3 Mon Sep 17 00:00:00 2001 From: Arun Padakanti Date: Mon, 25 Nov 2024 20:24:48 +0530 Subject: [PATCH] Added constant for maximum buffer size for data transfer. --- src/platform/silabs/wifi/rs911x/platform/efx32_ncp_host.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/platform/silabs/wifi/rs911x/platform/efx32_ncp_host.c b/src/platform/silabs/wifi/rs911x/platform/efx32_ncp_host.c index f7ec8bca84..0d269f5806 100644 --- a/src/platform/silabs/wifi/rs911x/platform/efx32_ncp_host.c +++ b/src/platform/silabs/wifi/rs911x/platform/efx32_ncp_host.c @@ -46,13 +46,14 @@ #include "sl_spidrv_instances.h" #include "spidrv.h" +#define MAX_DATA_PACKET_SIZE 1800 #define LDMA_MAX_TRANSFER_LENGTH 4096 #define LDMA_DESCRIPTOR_ARRAY_LENGTH (LDMA_MAX_TRANSFER_LENGTH / 2048) // use SPI handle for EXP header (configured in project settings) extern SPIDRV_Handle_t sl_spidrv_exp_handle; #define SPI_HANDLE sl_spidrv_exp_handle -static uint8_t dummy_buffer[1800] = { 0 }; +static uint8_t dummy_buffer[MAX_DATA_PACKET_SIZE] = { 0 }; uint32_t rx_ldma_channel; uint32_t tx_ldma_channel;