9c8b2b94874ff0d89a5c9fb6a266bb87d258ce7f
[oweals/openwrt.git] /
1 From a0c5eea22d5d1181dbe0861b24e4b9bb598f4e50 Mon Sep 17 00:00:00 2001
2 From: Peter Oh <peter.oh@bowerswilkins.com>
3 Date: Thu, 12 Apr 2018 02:49:04 -0700
4 Subject: [PATCH 07/15] mesh: apply channel attributes before running Mesh
5
6 This helps mesh interface initializes with correct
7 channel parameters.
8
9 Signed-off-by: Peter Oh <peter.oh@bowerswilkins.com>
10 ---
11  wpa_supplicant/mesh.c | 4 ++--
12  1 file changed, 2 insertions(+), 2 deletions(-)
13
14 --- a/wpa_supplicant/mesh.c
15 +++ b/wpa_supplicant/mesh.c
16 @@ -334,6 +334,8 @@ static int wpa_supplicant_mesh_init(stru
17                 conf->basic_rates[rate_len] = -1;
18         }
19  
20 +       wpa_supplicant_conf_ap_ht(wpa_s, ssid, conf);
21 +
22         if (hostapd_setup_interface(ifmsh)) {
23                 wpa_printf(MSG_ERROR,
24                            "Failed to initialize hostapd interface for mesh");
25 @@ -345,8 +347,6 @@ static int wpa_supplicant_mesh_init(stru
26                 return -1;
27         }
28  
29 -       wpa_supplicant_conf_ap_ht(wpa_s, ssid, conf);
30 -
31         return 0;
32  out_free:
33         wpa_supplicant_mesh_deinit(wpa_s);