[PATCH 07/15] mesh: apply channel attributes before running Mesh

peter.oh at bowerswilkins.com peter.oh at bowerswilkins.com
Thu Apr 12 02:35:20 PDT 2018


From: Peter Oh <peter.oh at bowerswilkins.com>

This helps mesh interface initializes with correct
channel parameters.

Signed-off-by: Peter Oh <peter.oh at bowerswilkins.com>
---
 wpa_supplicant/mesh.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/wpa_supplicant/mesh.c b/wpa_supplicant/mesh.c
index e5799b4f7..fbed375cc 100644
--- a/wpa_supplicant/mesh.c
+++ b/wpa_supplicant/mesh.c
@@ -334,6 +334,8 @@ static int wpa_supplicant_mesh_init(struct wpa_supplicant *wpa_s,
 		conf->basic_rates[rate_len] = -1;
 	}
 
+	wpa_supplicant_conf_ap_ht(wpa_s, ssid, conf);
+
 	if (hostapd_setup_interface(ifmsh)) {
 		wpa_printf(MSG_ERROR,
 			   "Failed to initialize hostapd interface for mesh");
@@ -345,8 +347,6 @@ static int wpa_supplicant_mesh_init(struct wpa_supplicant *wpa_s,
 		return -1;
 	}
 
-	wpa_supplicant_conf_ap_ht(wpa_s, ssid, conf);
-
 	return 0;
 out_free:
 	wpa_supplicant_mesh_deinit(wpa_s);
-- 
2.11.0 (Apple Git-81)




More information about the Hostap mailing list