Skip to content

Commit

Permalink
Update status initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
brosahay committed Jan 17, 2025
1 parent b78bd81 commit f8f8377
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/platform/silabs/wifi/lwip-support/ethernetif.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ StaticSemaphore_t xEthernetIfSemaBuffer;
#define LWIP_FRAME_ALIGNMENT 60

uint32_t gOverrunCount = 0;
sl_status_t status = 0;

/*****************************************************************************
* Variables
Expand Down Expand Up @@ -334,7 +335,6 @@ static err_t low_level_output(struct netif * netif, struct pbuf * p)
{
#if (SLI_SI91X_MCU_INTERFACE | EXP_BOARD)
UNUSED_PARAMETER(netif);
sl_status_t status;
status = sl_wifi_send_raw_data_frame(SL_WIFI_CLIENT_INTERFACE, (uint8_t *) p->payload, p->len);
if (status != SL_STATUS_OK)
{
Expand All @@ -346,7 +346,6 @@ static err_t low_level_output(struct netif * netif, struct pbuf * p)
struct pbuf * q;
uint16_t framelength = 0;
uint16_t datalength = 0;
int32_t status = 0;
#if WIFI_DEBUG_ENABLED
ChipLogProgress(DeviceLayer, "LWIP : low_level_output");
#endif
Expand Down Expand Up @@ -406,7 +405,7 @@ static err_t low_level_output(struct netif * netif, struct pbuf * p)
status = wfx_rsi_send_data(packet, datalength);
if (status != 0)
{
ChipLogError(DeviceLayer, "*ERR*EN-RSI:Send fail: %d", status);
ChipLogError(DeviceLayer, "*ERR*EN-RSI:Send fail: %ld", status);
xSemaphoreGive(ethout_sem);
return ERR_IF;
}
Expand Down

0 comments on commit f8f8377

Please sign in to comment.