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);
|
||||
if (ret != OK)
|
||||
if (ret < 0)
|
||||
{
|
||||
wlerr("ERROR: Failed to copy packet\n");
|
||||
goto out;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue