aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/mesh.c
diff options
context:
space:
mode:
authorMaital Hahn <maitalm@ti.com>2016-06-20 13:27:21 (GMT)
committerJouni Malinen <j@w1.fi>2016-06-24 16:02:58 (GMT)
commit4976618c76b954f2f584360f4e921f4a2b205526 (patch)
tree296e598caa94b002c7b8cf10fc03f9a9fddc8652 /wpa_supplicant/mesh.c
parentd1bc3ec85e330ba4881a94a18fcde36b74e14652 (diff)
downloadhostap-4976618c76b954f2f584360f4e921f4a2b205526.zip
hostap-4976618c76b954f2f584360f4e921f4a2b205526.tar.gz
hostap-4976618c76b954f2f584360f4e921f4a2b205526.tar.bz2
mesh: Mark wpa_state COMPLETED when mesh join has been performed
In mesh interface, the wpa_supplicant state was either DISCONNECT/SCANNING in non-secured connection or AUTHENTICATING in secured connection. The latter prevented the scan. Update the wpa_supplicant state in mesh to be COMPLETED upon initialization. This is similar to the P2P GO case. Signed-off-by: Maital Hahn <maitalm@ti.com>
Diffstat (limited to 'wpa_supplicant/mesh.c')
-rw-r--r--wpa_supplicant/mesh.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/wpa_supplicant/mesh.c b/wpa_supplicant/mesh.c
index bf9beb2..dd534d4 100644
--- a/wpa_supplicant/mesh.c
+++ b/wpa_supplicant/mesh.c
@@ -445,6 +445,9 @@ 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);
+ if (!ret)
+ wpa_supplicant_set_state(wpa_s, WPA_COMPLETED);
+
out:
return ret;
}