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 <masashi.honma@gmail.com>
This commit is contained in:
parent
dd2cbafc89
commit
79ddb2062e
2 changed files with 4 additions and 0 deletions
|
@ -129,6 +129,7 @@ extern "C" {
|
||||||
#define MESH_PEER_DISCONNECTED "MESH-PEER-DISCONNECTED "
|
#define MESH_PEER_DISCONNECTED "MESH-PEER-DISCONNECTED "
|
||||||
/** Mesh SAE authentication failure. Wrong password suspected. */
|
/** Mesh SAE authentication failure. Wrong password suspected. */
|
||||||
#define MESH_SAE_AUTH_FAILURE "MESH-SAE-AUTH-FAILURE "
|
#define MESH_SAE_AUTH_FAILURE "MESH-SAE-AUTH-FAILURE "
|
||||||
|
#define MESH_SAE_AUTH_BLOCKED "MESH-SAE-AUTH-BLOCKED "
|
||||||
|
|
||||||
/* WMM AC events */
|
/* WMM AC events */
|
||||||
#define WMM_AC_EVENT_TSPEC_ADDED "TSPEC-ADDED "
|
#define WMM_AC_EVENT_TSPEC_ADDED "TSPEC-ADDED "
|
||||||
|
|
|
@ -45,6 +45,9 @@ void mesh_auth_timer(void *eloop_ctx, void *user_data)
|
||||||
/* block the STA if exceeded the number of attempts */
|
/* block the STA if exceeded the number of attempts */
|
||||||
wpa_mesh_set_plink_state(wpa_s, sta, PLINK_BLOCKED);
|
wpa_mesh_set_plink_state(wpa_s, sta, PLINK_BLOCKED);
|
||||||
sta->sae->state = SAE_NOTHING;
|
sta->sae->state = SAE_NOTHING;
|
||||||
|
wpa_msg(wpa_s, MSG_INFO, MESH_SAE_AUTH_BLOCKED "addr="
|
||||||
|
MACSTR,
|
||||||
|
MAC2STR(sta->addr));
|
||||||
}
|
}
|
||||||
sta->sae_auth_retry++;
|
sta->sae_auth_retry++;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue