net: wifi: Add reasons for 4 way handshake failure

When there is 4 way handshake timeout, it can be because of
incorrect credential or some times when AP's signal strength
is weak. It can cause 4 way handshake fail. Adding comment
where WIFI_STATUS_CONN_WRONG_PASSWORD is defined.

Signed-off-by: Kapil Bhatt <kapil.bhatt@nordicsemi.no>
This commit is contained in:
Kapil Bhatt 2024-03-28 12:17:11 +05:30 committed by Fabio Baltieri
parent 6a0e6e4737
commit 10d9099356

View file

@ -380,7 +380,14 @@ enum wifi_conn_status {
WIFI_STATUS_CONN_SUCCESS = 0,
/** Connection failed - generic failure */
WIFI_STATUS_CONN_FAIL,
/** Connection failed - wrong password */
/** Connection failed - wrong password
* Few possible reasons for 4-way handshake failure that we can guess are as follows:
* 1) Incorrect key
* 2) EAPoL frames lost causing timeout
*
* #1 is the likely cause, so, we convey to the user that it is due to
* Wrong passphrase/password.
*/
WIFI_STATUS_CONN_WRONG_PASSWORD,
/** Connection timed out */
WIFI_STATUS_CONN_TIMEOUT,