From b07438f26f5ef9ed9e928ffebc2c1e9aaa6a333b Mon Sep 17 00:00:00 2001 From: muhaidong Date: Thu, 1 Dec 2022 16:15:35 +0800 Subject: [PATCH] esp_wifi: fix softap beacon memory leak issue 1. fix softap beacon memory leak issue. 2. fix esp wifi sta get ap info does not return connected ssid issue. 3. update inactive timer when recv ps-poll or success send data. 4. decrease test memory leak threshold. --- components/esp_wifi/lib | 2 +- components/esp_wifi/test_apps/wifi_connect/main/app_main.c | 2 +- components/esp_wifi/test_apps/wifi_function/main/app_main.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/components/esp_wifi/lib b/components/esp_wifi/lib index f3e2f7fac3..9e81af1747 160000 --- a/components/esp_wifi/lib +++ b/components/esp_wifi/lib @@ -1 +1 @@ -Subproject commit f3e2f7fac3b27671f45ef368b49264d1477efbd9 +Subproject commit 9e81af17476302dbf053242a9a0a9b81a3cd2949 diff --git a/components/esp_wifi/test_apps/wifi_connect/main/app_main.c b/components/esp_wifi/test_apps/wifi_connect/main/app_main.c index 3a9f08483e..8806a82ce5 100644 --- a/components/esp_wifi/test_apps/wifi_connect/main/app_main.c +++ b/components/esp_wifi/test_apps/wifi_connect/main/app_main.c @@ -13,7 +13,7 @@ #include "esp_heap_caps.h" // Some resources are lazy allocated in wifi and lwip -#define TEST_MEMORY_LEAK_THRESHOLD (-4096) +#define TEST_MEMORY_LEAK_THRESHOLD (-1536) static size_t before_free_8bit; static size_t before_free_32bit; diff --git a/components/esp_wifi/test_apps/wifi_function/main/app_main.c b/components/esp_wifi/test_apps/wifi_function/main/app_main.c index ff184b1537..f99864da55 100644 --- a/components/esp_wifi/test_apps/wifi_function/main/app_main.c +++ b/components/esp_wifi/test_apps/wifi_function/main/app_main.c @@ -12,7 +12,7 @@ #include "esp_heap_caps.h" // Some resources are lazy allocated in wifi or event handler -#define TEST_MEMORY_LEAK_THRESHOLD (-4096) +#define TEST_MEMORY_LEAK_THRESHOLD (-1536) static size_t before_free_8bit; static size_t before_free_32bit;