diff --git a/components/esp_wifi/lib b/components/esp_wifi/lib index a28af1f3f2..7df324fc40 160000 --- a/components/esp_wifi/lib +++ b/components/esp_wifi/lib @@ -1 +1 @@ -Subproject commit a28af1f3f2fe9d0a35de0acd80abd58d59d62819 +Subproject commit 7df324fc40a1de5f981e4a38d8941d4c82d9a62a diff --git a/components/esp_wifi/src/wifi_init.c b/components/esp_wifi/src/wifi_init.c index 8cfc347844..632798ad2d 100644 --- a/components/esp_wifi/src/wifi_init.c +++ b/components/esp_wifi/src/wifi_init.c @@ -115,6 +115,7 @@ esp_err_t esp_wifi_deinit(void) err = esp_wifi_deinit_internal(); if (err != ESP_OK) { ESP_LOGE(TAG, "Failed to deinit Wi-Fi driver (0x%x)", err); + return err; } #if CONFIG_ESP_NETIF_TCPIP_ADAPTER_COMPATIBLE_LAYER