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>
This commit is contained in:
Maital Hahn 2016-06-20 16:27:21 +03:00 committed by Jouni Malinen
parent d1bc3ec85e
commit 4976618c76
2 changed files with 3 additions and 1 deletions

View file

@ -445,6 +445,9 @@ int wpa_supplicant_join_mesh(struct wpa_supplicant *wpa_s,
/* hostapd sets the interface down until we associate */ /* hostapd sets the interface down until we associate */
wpa_drv_set_operstate(wpa_s, 1); wpa_drv_set_operstate(wpa_s, 1);
if (!ret)
wpa_supplicant_set_state(wpa_s, WPA_COMPLETED);
out: out:
return ret; return ret;
} }

View file

@ -363,7 +363,6 @@ int mesh_rsn_auth_sae_sta(struct wpa_supplicant *wpa_s,
"AUTH: started authentication with SAE peer: " MACSTR, "AUTH: started authentication with SAE peer: " MACSTR,
MAC2STR(sta->addr)); MAC2STR(sta->addr));
wpa_supplicant_set_state(wpa_s, WPA_AUTHENTICATING);
ret = auth_sae_init_committed(hapd, sta); ret = auth_sae_init_committed(hapd, sta);
if (ret) if (ret)
return ret; return ret;