[prev in list] [next in list] [prev in thread] [next in thread]
List: hostap
Subject: [PATCH v5 08/17] mesh: set interface type to mesh before setting interface
From: peter.oh () bowerswilkins ! com
Date: 2018-05-29 21:39:12
Message-ID: 544ad68a25bf755c56a8781bcc0551e7efd53020.1527629631.git.peter.oh () bowerswilkins ! com
[Download RAW message or body]
From: Peter Oh <peter.oh@bowerswilkins.com>
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 | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/wpa_supplicant/mesh.c b/wpa_supplicant/mesh.c
index 7430bff..a8c8937 100644
--- a/wpa_supplicant/mesh.c
+++ b/wpa_supplicant/mesh.c
@@ -339,17 +339,17 @@ static int wpa_supplicant_mesh_init(struct wpa_supplicant *wpa_s,
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");
- return -1;
- }
-
if (wpa_drv_init_mesh(wpa_s)) {
wpa_msg(wpa_s, MSG_ERROR, "Failed to init mesh in driver");
return -1;
}
+ if (hostapd_setup_interface(ifmsh)) {
+ wpa_printf(MSG_ERROR,
+ "Failed to initialize hostapd interface for mesh");
+ return -1;
+ }
+
return 0;
out_free:
wpa_supplicant_mesh_deinit(wpa_s);
--
2.7.4
_______________________________________________
Hostap mailing list
Hostap@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/hostap
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic