From ea0603897dd779caa071634d8be4842ef9ab20b5 Mon Sep 17 00:00:00 2001 From: shenjun Date: Fri, 23 Oct 2020 23:55:29 +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 switch to a parent candidate which has the same layer and assoc as current parent 5. Fix not arm parent monitor when a parent candidate is cleared without sending an event to mesh layer 6. Fix the new voted root does not reconnect to router if rssi is weak --- components/esp_wifi/include/esp_mesh_internal.h | 9 +++++++++ components/esp_wifi/lib | 2 +- components/esp_wifi/src/lib_printf.c | 10 ++++++++++ 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 d10e297973..87f6a5f57a 100644 --- a/components/esp_wifi/include/esp_mesh_internal.h +++ b/components/esp_wifi/include/esp_mesh_internal.h @@ -285,6 +285,15 @@ esp_err_t esp_mesh_get_announce_interval(int *short_ms, int *long_ms); */ esp_err_t esp_mesh_ps_get_duties(esp_mesh_ps_duties_t* ps_duties); +/** + * @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 b/components/esp_wifi/lib index f8f054e999..6e05326fc7 160000 --- a/components/esp_wifi/lib +++ b/components/esp_wifi/lib @@ -1 +1 @@ -Subproject commit f8f054e999e8a56d7631406919586ed062d318a5 +Subproject commit 6e05326fc7c274b34c36662f8a25460b3ddabd8d diff --git a/components/esp_wifi/src/lib_printf.c b/components/esp_wifi/src/lib_printf.c index a22cfb99e4..f576f1d8c1 100644 --- a/components/esp_wifi/src/lib_printf.c +++ b/components/esp_wifi/src/lib_printf.c @@ -137,3 +137,13 @@ 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; +} +