]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
mesh: Mark wpa_state COMPLETED when mesh join has been performed
authorMaital Hahn <maitalm@ti.com>
Mon, 20 Jun 2016 13:27:21 +0000 (16:27 +0300)
committerJouni Malinen <j@w1.fi>
Fri, 24 Jun 2016 16:02:58 +0000 (19:02 +0300)
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>
wpa_supplicant/mesh.c
wpa_supplicant/mesh_rsn.c

index bf9beb2cdc8f552773b21db10e2c53ca5c669d46..dd534d4eaeeb37e3ffb12c2b45959880280b32c8 100644 (file)
@@ -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;
 }
index c5f5d692bba1e177ab800c1632db2a12d3320e52..2eec22759a712bc7d1fea993efdf50ac7973984c 100644 (file)
@@ -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;