From 3d0076a31f7c8d9ee563a4826dd731857be4e614 Mon Sep 17 00:00:00 2001 From: Nachiket Kukade Date: Thu, 18 Nov 2021 18:43:06 +0530 Subject: [PATCH] esp_wifi: Update wifi lib Update wifi lib with below fixes - 1. In FTM Responder, add session timer for cleanup, also remove unnecessary mutex locks 2. In FTM Responder, fix incorrect print in case of failure while setting up the SofTAP 2. In FTM Initiator, increase FTM Request response timeout to avoid failures in noisy environments 3. In FTM Initiator, abort for high start delta time, also fix timeout issue in ASAP mode --- components/esp_wifi/lib | 2 +- examples/wifi/ftm/main/ftm_main.c | 9 ++++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/components/esp_wifi/lib b/components/esp_wifi/lib index bba5f9116d..4c9f657748 160000 --- a/components/esp_wifi/lib +++ b/components/esp_wifi/lib @@ -1 +1 @@ -Subproject commit bba5f9116dec8eccce0ad43281a69f3f7f8c633b +Subproject commit 4c9f657748769d61b453b7b5b631c823ef9b4112 diff --git a/examples/wifi/ftm/main/ftm_main.c b/examples/wifi/ftm/main/ftm_main.c index 1090f6476c..fe3e2bec3d 100644 --- a/examples/wifi/ftm/main/ftm_main.c +++ b/examples/wifi/ftm/main/ftm_main.c @@ -317,7 +317,7 @@ static bool wifi_cmd_ap_set(const char* ssid, const char* pass) if (pass) { if (strlen(pass) != 0 && strlen(pass) < 8) { s_reconnect = true; - ESP_LOGE(TAG_AP, "password less than 8"); + ESP_LOGE(TAG_AP, "password cannot be less than 8 characters long"); return false; } strlcpy((char*) g_ap_config.ap.password, pass, MAX_PASSPHRASE_LEN); @@ -341,8 +341,11 @@ static int wifi_cmd_ap(int argc, char** argv) return 1; } - wifi_cmd_ap_set(ap_args.ssid->sval[0], ap_args.password->sval[0]); - ESP_LOGI(TAG_AP, "Starting SoftAP with FTM Responder support, SSID - %s, Password - %s", ap_args.ssid->sval[0], ap_args.password->sval[0]); + if (true == wifi_cmd_ap_set(ap_args.ssid->sval[0], ap_args.password->sval[0])) + ESP_LOGI(TAG_AP, "Starting SoftAP with FTM Responder support, SSID - %s, Password - %s", ap_args.ssid->sval[0], ap_args.password->sval[0]); + else + ESP_LOGE(TAG_AP, "Failed to start SoftAP!"); + return 0; }