Skip to content
This repository was archived by the owner on Nov 14, 2024. It is now read-only.

Commit

Permalink
[nrf noup] wpa_supplicant: Add connection event for wrong key
Browse files Browse the repository at this point in the history
When there is a wrong password for AP, the send_wifi_mgmt_conn_event
is missing for WRONG_KEY.

Signed-off-by: Kapil Bhatt <[email protected]>
  • Loading branch information
kapbh committed Mar 19, 2024
1 parent dda5457 commit f096785
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions wpa_supplicant/events.c
Original file line number Diff line number Diff line change
Expand Up @@ -3674,6 +3674,9 @@ static void wpa_supplicant_event_disassoc_finish(struct wpa_supplicant *wpa_s,
if (wpas_p2p_4way_hs_failed(wpa_s) > 0)
return; /* P2P group removed */
wpas_auth_failed(wpa_s, "WRONG_KEY");
#ifdef CONFIG_ZEPHYR
send_wifi_mgmt_conn_event(wpa_s, WLAN_REASON_4WAY_HANDSHAKE_TIMEOUT);
#endif /* CONFIG_ZEPHYR */
#ifdef CONFIG_DPP2
wpas_dpp_send_conn_status_result(wpa_s,
DPP_STATUS_AUTH_FAILURE);
Expand Down

0 comments on commit f096785

Please sign in to comment.