aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/mesh_rsn.c
diff options
context:
space:
mode:
authorMasashi Honma <masashi.honma@gmail.com>2015-02-05 13:59:59 (GMT)
committerJouni Malinen <j@w1.fi>2015-02-07 20:23:34 (GMT)
commitdd2cbafc89c3b879760b932fd7a7d726e01f9b27 (patch)
treed117961c1b434476512f9fe5ddd2dc5137889873 /wpa_supplicant/mesh_rsn.c
parent0cb5f8d94536e097af7a11273f79239001a602d6 (diff)
downloadhostap-dd2cbafc89c3b879760b932fd7a7d726e01f9b27.zip
hostap-dd2cbafc89c3b879760b932fd7a7d726e01f9b27.tar.gz
hostap-dd2cbafc89c3b879760b932fd7a7d726e01f9b27.tar.bz2
mesh: Add a monitor event for SAE authentication failure
SAE authentication fails likely with wrong password. This commit adds a notification of the failure to the upper application (UI) so that the application can notify suspection of a wrong password to the user. The control interface monitor even for this is "MESH-SAE-AUTH-FAILURE addr=<peer>". Signed-off-by: Masashi Honma <masashi.honma@gmail.com>
Diffstat (limited to 'wpa_supplicant/mesh_rsn.c')
-rw-r--r--wpa_supplicant/mesh_rsn.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/wpa_supplicant/mesh_rsn.c b/wpa_supplicant/mesh_rsn.c
index da4cb03..d42502c 100644
--- a/wpa_supplicant/mesh_rsn.c
+++ b/wpa_supplicant/mesh_rsn.c
@@ -37,6 +37,8 @@ void mesh_auth_timer(void *eloop_ctx, void *user_data)
wpa_printf(MSG_DEBUG, "AUTH: Re-authenticate with " MACSTR
" (attempt %d) ",
MAC2STR(sta->addr), sta->sae_auth_retry);
+ wpa_msg(wpa_s, MSG_INFO, MESH_SAE_AUTH_FAILURE "addr=" MACSTR,
+ MAC2STR(sta->addr));
if (sta->sae_auth_retry < MESH_AUTH_RETRY) {
mesh_rsn_auth_sae_sta(wpa_s, sta);
} else {