From 16ccf29a747c250b63b67eb28dd3999b9b2c6c1c Mon Sep 17 00:00:00 2001 From: shenjun Date: Tue, 3 Nov 2020 17:06:27 +0800 Subject: [PATCH] esp_wifi_mesh: update wifi mesh libs 1. Fix FIX-ROOT does not reconnect to router when disconnect reason is too many 2. Add API esp_mesh_print_scan_result 3. Modify not to reset mesh_xonseq of self and children when flush_upstream_packets 4. Fix not arm parent monitor when a parent candidate is cleared without sending an event to mesh layer 5. Fix the new voted root does not reconnect to router if rssi is weak --- components/esp_wifi/include/esp_mesh_internal.h | 10 ++++++++++ components/esp_wifi/lib_esp32 | 2 +- components/esp_wifi/src/lib_printf.c | 9 +++++++++ 3 files changed, 20 insertions(+), 1 deletion(-) diff --git a/components/esp_wifi/include/esp_mesh_internal.h b/components/esp_wifi/include/esp_mesh_internal.h index 89b03e7f2a..0a467b2efe 100644 --- a/components/esp_wifi/include/esp_mesh_internal.h +++ b/components/esp_wifi/include/esp_mesh_internal.h @@ -263,6 +263,16 @@ esp_err_t esp_mesh_set_announce_interval(int short_ms, int long_ms); */ esp_err_t esp_mesh_get_announce_interval(int *short_ms, int *long_ms); +/** + * @brief Enable mesh print scan result + * + * @param[in] enable enable or not + * + * @return + * - ESP_OK + */ +esp_err_t esp_mesh_print_scan_result(bool enable); + #ifdef __cplusplus } #endif diff --git a/components/esp_wifi/lib_esp32 b/components/esp_wifi/lib_esp32 index 40e538b6ad..96f30622f9 160000 --- a/components/esp_wifi/lib_esp32 +++ b/components/esp_wifi/lib_esp32 @@ -1 +1 @@ -Subproject commit 40e538b6ad06387e753c75c1acd4b57b5faf7166 +Subproject commit 96f30622f9f5ff35470bcd61ffa697f8f32ac144 diff --git a/components/esp_wifi/src/lib_printf.c b/components/esp_wifi/src/lib_printf.c index a22cfb99e4..4ad6106a52 100644 --- a/components/esp_wifi/src/lib_printf.c +++ b/components/esp_wifi/src/lib_printf.c @@ -137,3 +137,12 @@ int coexist_printf(const char* format, ...) va_end(arg); return res; } + +int mesh_printf(const char* format, ...) +{ + va_list arg; + va_start(arg, format); + int res = lib_printf("mesh", format, arg); + va_end(arg); + return res; +}