From: Masashi Honma Date: Thu, 5 Feb 2015 14:00:00 +0000 (+0900) Subject: mesh: Add a monitor event on SAE authentication getting blocked X-Git-Tag: hostap_2_4~164 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=79ddb2062eb2b53937c2c578e56532021cbb8564;p=thirdparty%2Fhostap.git mesh: Add a monitor event on SAE authentication getting blocked Send MESH-SAE-AUTH-BLOCKED event if SAE authentication is blocked. The BLOCK state will finish when a new peer notification event is sent for the same MAC address. Signed-off-by: Masashi Honma --- diff --git a/src/common/wpa_ctrl.h b/src/common/wpa_ctrl.h index eaf20d13a..2171b6fd2 100644 --- a/src/common/wpa_ctrl.h +++ b/src/common/wpa_ctrl.h @@ -129,6 +129,7 @@ extern "C" { #define MESH_PEER_DISCONNECTED "MESH-PEER-DISCONNECTED " /** Mesh SAE authentication failure. Wrong password suspected. */ #define MESH_SAE_AUTH_FAILURE "MESH-SAE-AUTH-FAILURE " +#define MESH_SAE_AUTH_BLOCKED "MESH-SAE-AUTH-BLOCKED " /* WMM AC events */ #define WMM_AC_EVENT_TSPEC_ADDED "TSPEC-ADDED " diff --git a/wpa_supplicant/mesh_rsn.c b/wpa_supplicant/mesh_rsn.c index d42502c19..d5cf7a916 100644 --- a/wpa_supplicant/mesh_rsn.c +++ b/wpa_supplicant/mesh_rsn.c @@ -45,6 +45,9 @@ void mesh_auth_timer(void *eloop_ctx, void *user_data) /* block the STA if exceeded the number of attempts */ wpa_mesh_set_plink_state(wpa_s, sta, PLINK_BLOCKED); sta->sae->state = SAE_NOTHING; + wpa_msg(wpa_s, MSG_INFO, MESH_SAE_AUTH_BLOCKED "addr=" + MACSTR, + MAC2STR(sta->addr)); } sta->sae_auth_retry++; }