From 4d10eb20db1b916ebf272b2347c33ee3f25d03d4 Mon Sep 17 00:00:00 2001 From: xiehang Date: Mon, 2 Mar 2020 12:05:15 +0800 Subject: [PATCH] esp_wifi: fix some WiFi bugs Fix following WiFi bugs: 1. Fix crashing during shared WEP connection 2. Remove log "age_bss: null bss 3. Add WiFi stop checking at the beginning of wifi deinit api 4. Fix espnow crash 5. Fix the bug for setting channel when WiFi is no NULL mode 6. Adjust scheme percent when BT is in connected status 7. Fix WiFi stop leads to memory leak 8. Place the Vendor Specific Element at the end of WiFi packet --- components/esp_wifi/lib | 2 +- components/esp_wifi/src/wifi_init.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/components/esp_wifi/lib b/components/esp_wifi/lib index a28af1f3f..7df324fc4 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 8cfc34784..632798ad2 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