From b571757bcda481cdcc556b5b1d4541c468164ffc Mon Sep 17 00:00:00 2001 From: Gunar Schorcht Date: Sat, 3 Aug 2019 17:48:57 +0200 Subject: [PATCH] cpu/esp32: fix of the return code in esp_wifi_send --- cpu/esp32/esp-wifi/esp_wifi_netdev.c | 1 + 1 file changed, 1 insertion(+) diff --git a/cpu/esp32/esp-wifi/esp_wifi_netdev.c b/cpu/esp32/esp-wifi/esp_wifi_netdev.c index 551937f381..ecdd332cfb 100644 --- a/cpu/esp32/esp-wifi/esp_wifi_netdev.c +++ b/cpu/esp32/esp-wifi/esp_wifi_netdev.c @@ -336,6 +336,7 @@ static int _esp_wifi_send(netdev_t *netdev, const iolist_t *iolist) /* send the the packet to the peer(s) mac address */ if (esp_wifi_internal_tx(ESP_IF_WIFI_STA, dev->tx_buf, dev->tx_len) == ESP_OK) { + ret = dev->tx_len; netdev->event_callback(netdev, NETDEV_EVENT_TX_COMPLETE); } else {