Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SL-UP] Adds and updates logs for RS911X #137

Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions src/platform/silabs/wifi/lwip-support/ethernetif.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,7 @@ 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;
#ifdef WIFI_DEBUG_ENABLED
ChipLogProgress(DeviceLayer, "LWIP : low_level_output");
#endif
Expand All @@ -375,14 +376,14 @@ static err_t low_level_output(struct netif * netif, struct pbuf * p)
#endif
if ((netif->flags & (NETIF_FLAG_LINK_UP | NETIF_FLAG_UP)) != (NETIF_FLAG_LINK_UP | NETIF_FLAG_UP))
{
ChipLogProgress(DeviceLayer, "EN-RSI:NOT UP");
ChipLogError(DeviceLayer, "EN-RSI:NOT UP");
xSemaphoreGive(ethout_sem);
return ERR_IF;
}
packet = wfx_rsi_alloc_pkt();
if (!packet)
{
ChipLogProgress(DeviceLayer, "EN-RSI:No buf");
ChipLogError(DeviceLayer, "EN-RSI:No buf");
xSemaphoreGive(ethout_sem);
return ERR_IF;
}
Expand Down Expand Up @@ -410,9 +411,10 @@ static err_t low_level_output(struct netif * netif, struct pbuf * p)
/* forward the generated packet to RSI to
* send the data over wifi network
*/
if (wfx_rsi_send_data(packet, datalength))
status = wfx_rsi_send_data(packet, datalength);
if (status != 0)
{
ChipLogProgress(DeviceLayer, "*ERR*EN-RSI:Send fail");
ChipLogError(DeviceLayer, "*ERR*EN-RSI:Send fail: %d", status);
xSemaphoreGive(ethout_sem);
return ERR_IF;
}
Expand Down
Loading