This is an automated email from the ASF dual-hosted git repository. tmedicci pushed a commit to branch releases/12.11 in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit a00ac581c5fcde6162db21029ffe422110ebe7d3 Author: Filipe Cavalcanti <[email protected]> AuthorDate: Mon Sep 29 10:51:45 2025 -0300 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]> --- arch/xtensa/src/common/espressif/esp_wlan_netdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/xtensa/src/common/espressif/esp_wlan_netdev.c b/arch/xtensa/src/common/espressif/esp_wlan_netdev.c index 60e5c373dfe..29a1dfd16db 100644 --- a/arch/xtensa/src/common/espressif/esp_wlan_netdev.c +++ b/arch/xtensa/src/common/espressif/esp_wlan_netdev.c @@ -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;
