From ddfb11e1c55a5d6a4141d7a5978c817e7b0bc590 Mon Sep 17 00:00:00 2001 From: aditi_lonkar Date: Tue, 28 Jul 2020 17:57:55 +0530 Subject: [PATCH] wifi: Fix esp_wifi log levels Closes https://github.com/espressif/esp-idf/issues/5721 --- components/esp_wifi/include/esp_private/wifi.h | 3 ++- components/esp_wifi/lib | 2 +- components/esp_wifi/src/wifi_init.c | 4 +++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/components/esp_wifi/include/esp_private/wifi.h b/components/esp_wifi/include/esp_private/wifi.h index 04a306fbea..b85d60eed7 100644 --- a/components/esp_wifi/include/esp_private/wifi.h +++ b/components/esp_wifi/include/esp_private/wifi.h @@ -53,7 +53,8 @@ typedef struct { * */ typedef enum { - WIFI_LOG_ERROR = 0, /*enabled by default*/ + WIFI_LOG_NONE = 0, + WIFI_LOG_ERROR , /*enabled by default*/ WIFI_LOG_WARNING, /*enabled by default*/ WIFI_LOG_INFO, /*enabled by default*/ WIFI_LOG_DEBUG, /*can be set in menuconfig*/ diff --git a/components/esp_wifi/lib b/components/esp_wifi/lib index 96cdc6ac10..ce232cafe7 160000 --- a/components/esp_wifi/lib +++ b/components/esp_wifi/lib @@ -1 +1 @@ -Subproject commit 96cdc6ac10c7fa443e3815c5d6809c0a05ed6138 +Subproject commit ce232cafe7d973f07f919deee8de95f397453f47 diff --git a/components/esp_wifi/src/wifi_init.c b/components/esp_wifi/src/wifi_init.c index 3229e3d8c4..0159e48fa4 100644 --- a/components/esp_wifi/src/wifi_init.c +++ b/components/esp_wifi/src/wifi_init.c @@ -63,8 +63,10 @@ static void __attribute__((constructor)) s_set_default_wifi_log_level(void) so set it at runtime startup. Done here not in esp_wifi_init() to allow the user to set the level again before esp_wifi_init() is called. */ - esp_log_level_set("wifi", CONFIG_LOG_DEFAULT_LEVEL); + esp_log_level_set("wifi", CONFIG_LOG_DEFAULT_LEVEL); esp_log_level_set("mesh", CONFIG_LOG_DEFAULT_LEVEL); + esp_log_level_set("smartconfig", CONFIG_LOG_DEFAULT_LEVEL); + esp_log_level_set("ESPNOW", CONFIG_LOG_DEFAULT_LEVEL); } static void esp_wifi_set_debug_log(void)