From 5e16b39f62ed184143a7e0b6f3486d56c35c6d7d Mon Sep 17 00:00:00 2001 From: Soh Kam Yung Date: Fri, 17 May 2024 11:24:00 +0800 Subject: [PATCH] fix/netif_error Fix netif error to return Return ESP_ERR_ESP_NETIF_TX_FAILED if available, else return ESP_ERR_ESP_NETIF_NO_MEM --- host/drivers/transport/transport_drv.c | 4 ++++ idf_component.yml | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/host/drivers/transport/transport_drv.c b/host/drivers/transport/transport_drv.c index 9aa7bbc005..6e5b57f8e4 100644 --- a/host/drivers/transport/transport_drv.c +++ b/host/drivers/transport/transport_drv.c @@ -215,7 +215,11 @@ static esp_err_t transport_drv_sta_tx(void *h, void *buffer, size_t len) #endif errno = -ENOBUFS; //return ESP_ERR_NO_BUFFS; +#if defined(ESP_ERR_ESP_NETIF_TX_FAILED) return ESP_ERR_ESP_NETIF_TX_FAILED; +#else + return ESP_ERR_ESP_NETIF_NO_MEM; +#endif } assert(h && h==chan_arr[ESP_STA_IF]->api_chan); diff --git a/idf_component.yml b/idf_component.yml index e80aa21f46..bdf6d07015 100644 --- a/idf_component.yml +++ b/idf_component.yml @@ -1,4 +1,4 @@ -version: "0.0.5-dev.13" +version: "0.0.5-dev.14" description: ESP-Hosted provides driver such that any host can re-use ESP chipset as Wi-Fi or Bluetooth co-processor. url: https://github.com/espressif/esp-hosted/tree/feature/esp_as_mcu_host examples: