Skip to content

Commit a00ac58

Browse files
fdcavalcantitmedicci
authored andcommitted
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 <[email protected]>
1 parent b49bf58 commit a00ac58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/xtensa/src/common/espressif/esp_wlan_netdev.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1019,7 +1019,7 @@ static int wlan_rx_done(struct esp_wlan_priv_s *priv,
10191019
}
10201020

10211021
ret = netpkt_copyin(&priv->dev, pkt, buffer, len, 0);
1022-
if (ret != OK)
1022+
if (ret < 0)
10231023
{
10241024
wlerr("ERROR: Failed to copy packet\n");
10251025
goto out;

0 commit comments

Comments
 (0)