@@ -129,6 +129,7 @@ extern "C" {
#define MESH_PEER_DISCONNECTED "MESH-PEER-DISCONNECTED "
/** Mesh SAE auth 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 "
@@ -28,6 +28,7 @@
#define MESH_AUTH_TIMEOUT 10
#define MESH_AUTH_RETRY 3
+
void mesh_auth_timer(void *eloop_ctx, void *user_data)
{
struct wpa_supplicant *wpa_s = eloop_ctx;
@@ -45,6 +46,10 @@ 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_WARNING, MESH_SAE_AUTH_BLOCKED
+ "addr=" MACSTR " duration=%d",
+ MAC2STR(sta->addr),
+ wpa_s->mesh_auth_block_duration);
}
sta->sae_auth_retry++;
}
Fire MESH-SAE-AUTH-BLOCKED event when SAE authentication blocked. This event notify how long the STA will be blocked. The BLOCK state will finish when the wpa_cli received new peer notification event of the identical MAC address. Signed-off-by: Masashi Honma <masashi.honma@gmail.com> --- src/common/wpa_ctrl.h | 1 + wpa_supplicant/mesh_rsn.c | 5 +++++ 2 files changed, 6 insertions(+)