arch/xtensa/espressif: fix Wi-Fi netpkt copy error
Some checks failed
Build / Fetch-Source (push) Has been cancelled
Build / Linux-Arch (push) Has been cancelled
Build / Linux (push) Has been cancelled
Build / macOS-Arch (push) Has been cancelled
Build / macOS (push) Has been cancelled
Build / msys2-Arch (push) Has been cancelled
Build / msys2 (push) Has been cancelled
Build / msvc-Arch (push) Has been cancelled
Build / msvc (push) Has been cancelled

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:
Filipe Cavalcanti
2025-09-29 10:51:45 -03:00
committed by Tiago Medicci Serrano
parent b49bf589c3
commit a00ac581c5

View File

@@ -1019,7 +1019,7 @@ static int wlan_rx_done(struct esp_wlan_priv_s *priv,
}
ret = netpkt_copyin(&priv->dev, pkt, buffer, len, 0);
if (ret != OK)
if (ret < 0)
{
wlerr("ERROR: Failed to copy packet\n");
goto out;