From d8f8d5478a646a9ec14d0418aa0c4b96c1899b58 Mon Sep 17 00:00:00 2001 From: tablatronix <807787+tablatronix@users.noreply.github.com> Date: Fri, 16 Feb 2024 22:07:21 -0600 Subject: [PATCH] Adds connect status for ambiguous state Will find a way to clear this up using assumption based on reason codes, wrong password is very ambiguous with PMF and modern APs --- WiFiManager.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/WiFiManager.cpp b/WiFiManager.cpp index d7ae652..ca2f1da 100644 --- a/WiFiManager.cpp +++ b/WiFiManager.cpp @@ -2503,6 +2503,11 @@ void WiFiManager::reportStatus(String &page){ str.replace(FPSTR(T_c),"D"); str.replace(FPSTR(T_r),FPSTR(HTTP_STATUS_OFFFAIL)); } + else if(_lastconxresult == WL_CONNECTION_LOST){ + // connect failed, MOST likely 4WAY_HANDSHAKE_TIMEOUT/incorrect password, state is ambiguous however + str.replace(FPSTR(T_c),"D"); + str.replace(FPSTR(T_r),FPSTR(HTTP_STATUS_OFFFAIL)); + } else{ str.replace(FPSTR(T_c),""); str.replace(FPSTR(T_r),"");