[PATCH 3/3] mesh: Initialize SAE state machine on restarting

Masashi Honma masashi.honma
Wed Jan 21 21:22:18 PST 2015


After STA exceeded the dot11MeshMaxRetries, STA could not continue SAE
authentication even if new peer notification came. Because SAE state shows the
authentication is in progress still. This initialize the SAE state on
restarting.

Signed-off-by: Masashi Honma <masashi.honma at gmail.com>
---
 wpa_supplicant/mesh_mpm.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/wpa_supplicant/mesh_mpm.c b/wpa_supplicant/mesh_mpm.c
index cddeb01..c660639 100644
--- a/wpa_supplicant/mesh_mpm.c
+++ b/wpa_supplicant/mesh_mpm.c
@@ -391,6 +391,8 @@ static void mesh_mpm_fsm_restart(struct wpa_supplicant *wpa_s,
 	wpa_mesh_set_plink_state(wpa_s, sta, PLINK_LISTEN);
 	sta->my_lid = sta->peer_lid = sta->mpm_close_reason = 0;
 	sta->mpm_retries = 0;
+	if (sta->sae)
+		sta->sae->state = SAE_NOTHING;
 }
 
 
-- 
1.9.1




More information about the Hostap mailing list