1 From e001251cb5708c406d477eca6aa912e5692b17fe Mon Sep 17 00:00:00 2001
2 From: Peter Oh <peter.oh@bowerswilkins.com>
3 Date: Tue, 17 Apr 2018 21:55:05 -0700
4 Subject: [PATCH 08/16] mesh: set interface type to mesh before setting
7 Correct interface type is required to start DFS CAC that can be
8 triggered during interface setup.
10 Signed-off-by: Peter Oh <peter.oh@bowerswilkins.com>
12 wpa_supplicant/mesh.c | 10 +++++-----
13 1 file changed, 5 insertions(+), 5 deletions(-)
15 --- a/wpa_supplicant/mesh.c
16 +++ b/wpa_supplicant/mesh.c
17 @@ -340,14 +340,14 @@ static int wpa_supplicant_mesh_init(stru
19 wpa_supplicant_conf_ap_ht(wpa_s, ssid, conf);
21 - if (hostapd_setup_interface(ifmsh)) {
22 - wpa_printf(MSG_ERROR,
23 - "Failed to initialize hostapd interface for mesh");
24 + if (wpa_drv_init_mesh(wpa_s)) {
25 + wpa_msg(wpa_s, MSG_ERROR, "Failed to init mesh in driver");
29 - if (wpa_drv_init_mesh(wpa_s)) {
30 - wpa_msg(wpa_s, MSG_ERROR, "Failed to init mesh in driver");
31 + if (hostapd_setup_interface(ifmsh)) {
32 + wpa_printf(MSG_ERROR,
33 + "Failed to initialize hostapd interface for mesh");