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>
This commit is contained in:
parent
0cb5f8d945
commit
dd2cbafc89
2 changed files with 4 additions and 0 deletions
|
@ -127,6 +127,8 @@ extern "C" {
|
||||||
#define MESH_GROUP_REMOVED "MESH-GROUP-REMOVED "
|
#define MESH_GROUP_REMOVED "MESH-GROUP-REMOVED "
|
||||||
#define MESH_PEER_CONNECTED "MESH-PEER-CONNECTED "
|
#define MESH_PEER_CONNECTED "MESH-PEER-CONNECTED "
|
||||||
#define MESH_PEER_DISCONNECTED "MESH-PEER-DISCONNECTED "
|
#define MESH_PEER_DISCONNECTED "MESH-PEER-DISCONNECTED "
|
||||||
|
/** Mesh SAE authentication failure. Wrong password suspected. */
|
||||||
|
#define MESH_SAE_AUTH_FAILURE "MESH-SAE-AUTH-FAILURE "
|
||||||
|
|
||||||
/* WMM AC events */
|
/* WMM AC events */
|
||||||
#define WMM_AC_EVENT_TSPEC_ADDED "TSPEC-ADDED "
|
#define WMM_AC_EVENT_TSPEC_ADDED "TSPEC-ADDED "
|
||||||
|
|
|
@ -37,6 +37,8 @@ void mesh_auth_timer(void *eloop_ctx, void *user_data)
|
||||||
wpa_printf(MSG_DEBUG, "AUTH: Re-authenticate with " MACSTR
|
wpa_printf(MSG_DEBUG, "AUTH: Re-authenticate with " MACSTR
|
||||||
" (attempt %d) ",
|
" (attempt %d) ",
|
||||||
MAC2STR(sta->addr), sta->sae_auth_retry);
|
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) {
|
if (sta->sae_auth_retry < MESH_AUTH_RETRY) {
|
||||||
mesh_rsn_auth_sae_sta(wpa_s, sta);
|
mesh_rsn_auth_sae_sta(wpa_s, sta);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue