Problem with distinguishing wrong WIFI AP password
Posted: Fri Jan 13, 2023 9:21 am
Hi
I have an application, where there is a crucial to find out that the user put the wrong password to the selected AP.
API reference https://docs.espressif.com/projects/esp ... g-password says, that in case of wrong password, there would be a disconnection reason WIFI_REASON_4WAY_HANDSHAKE_TIMEOUT (or 2 other codes).
I had met a situation, where connection to the AP failed with WIFI_REASON_4WAY_HANDSHAKE_TIMEOUT, but the password was correct (looks like other issue caused such a reason code).
No separated reason value for wrong password and the current solution can make a false-positive wrong password indication.
Is there any possibility to be a 100% that the password not correct?
Why the wrong password is not indicated by a WIFI_REASON_AUTH_FAIL (it sounds more reasonable)?
Best Regards,
Adrian
I have an application, where there is a crucial to find out that the user put the wrong password to the selected AP.
API reference https://docs.espressif.com/projects/esp ... g-password says, that in case of wrong password, there would be a disconnection reason WIFI_REASON_4WAY_HANDSHAKE_TIMEOUT (or 2 other codes).
I had met a situation, where connection to the AP failed with WIFI_REASON_4WAY_HANDSHAKE_TIMEOUT, but the password was correct (looks like other issue caused such a reason code).
No separated reason value for wrong password and the current solution can make a false-positive wrong password indication.
Is there any possibility to be a 100% that the password not correct?
Why the wrong password is not indicated by a WIFI_REASON_AUTH_FAIL (it sounds more reasonable)?
Best Regards,
Adrian