[PATCH] mesh: Cannot perform scan on mesh IF while mesh is connected with security

Maital Hahn maitalm at ti.com
Mon Jun 20 06:27:21 PDT 2016


In mesh IF, the wpa_s state was either SCANNING in non-secured connection
or AUTHENTICATING in secured connection. The latter prevented the scan.
Updated the wpa_s state in mesh IF to be COMPLETED upon init (same as P2P GO).

Signed-off-by: Maital Hahn <maitalm at ti.com>
---
 wpa_supplicant/mesh.c     | 2 ++
 wpa_supplicant/mesh_rsn.c | 1 -
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/wpa_supplicant/mesh.c b/wpa_supplicant/mesh.c
index bf9beb2..4c4918e 100644
--- a/wpa_supplicant/mesh.c
+++ b/wpa_supplicant/mesh.c
@@ -445,6 +445,8 @@ int wpa_supplicant_join_mesh(struct wpa_supplicant *wpa_s,
 	/* hostapd sets the interface down until we associate */
 	wpa_drv_set_operstate(wpa_s, 1);
 
+	wpa_supplicant_set_state(wpa_s, WPA_COMPLETED);
+
 out:
 	return ret;
 }
diff --git a/wpa_supplicant/mesh_rsn.c b/wpa_supplicant/mesh_rsn.c
index c5f5d69..2eec227 100644
--- a/wpa_supplicant/mesh_rsn.c
+++ b/wpa_supplicant/mesh_rsn.c
@@ -363,7 +363,6 @@ int mesh_rsn_auth_sae_sta(struct wpa_supplicant *wpa_s,
 		"AUTH: started authentication with SAE peer: " MACSTR,
 		MAC2STR(sta->addr));
 
-	wpa_supplicant_set_state(wpa_s, WPA_AUTHENTICATING);
 	ret = auth_sae_init_committed(hapd, sta);
 	if (ret)
 		return ret;
-- 
2.7.2




More information about the Hostap mailing list