]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
mesh: Set interface type to mesh before setting interface
authorPeter Oh <peter.oh@bowerswilkins.com>
Mon, 27 Aug 2018 21:28:42 +0000 (14:28 -0700)
committerJouni Malinen <j@w1.fi>
Thu, 3 Jan 2019 11:02:56 +0000 (13:02 +0200)
Correct interface type is required to start DFS CAC that can be
triggered during interface setup.

Signed-off-by: Peter Oh <peter.oh@bowerswilkins.com>
wpa_supplicant/mesh.c

index 177ac31454197cbb478861ccbed5e46c26af8b0a..f92be214db8a6b2a113d1990e0c0ca1bbe30579b 100644 (file)
@@ -372,14 +372,14 @@ static int wpa_supplicant_mesh_init(struct wpa_supplicant *wpa_s,
                conf->basic_rates[rate_len] = -1;
        }
 
-       if (hostapd_setup_interface(ifmsh)) {
-               wpa_printf(MSG_ERROR,
-                          "Failed to initialize hostapd interface for mesh");
+       if (wpa_drv_init_mesh(wpa_s)) {
+               wpa_msg(wpa_s, MSG_ERROR, "Failed to init mesh in driver");
                return -1;
        }
 
-       if (wpa_drv_init_mesh(wpa_s)) {
-               wpa_msg(wpa_s, MSG_ERROR, "Failed to init mesh in driver");
+       if (hostapd_setup_interface(ifmsh)) {
+               wpa_printf(MSG_ERROR,
+                          "Failed to initialize hostapd interface for mesh");
                return -1;
        }