mirror of
https://github.com/apache/nuttx.git
synced 2026-08-01 20:28:58 +00:00
arch/xtensa/espressif: fix Wi-Fi netpkt copy error
Fix an issue where netpkt copy would fail due to wrong return checking condition. Signed-off-by: Filipe Cavalcanti <filipe.cavalcanti@espressif.com>
This commit is contained in:
parent
b49bf589c3
commit
a00ac581c5
1 changed files with 1 additions and 1 deletions
|
|
@ -1019,7 +1019,7 @@ static int wlan_rx_done(struct esp_wlan_priv_s *priv,
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = netpkt_copyin(&priv->dev, pkt, buffer, len, 0);
|
ret = netpkt_copyin(&priv->dev, pkt, buffer, len, 0);
|
||||||
if (ret != OK)
|
if (ret < 0)
|
||||||
{
|
{
|
||||||
wlerr("ERROR: Failed to copy packet\n");
|
wlerr("ERROR: Failed to copy packet\n");
|
||||||
goto out;
|
goto out;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue