de114953884d6f8829e7b892597fdc815949ef75
[openwrt/staging/neocturne.git] /
1 From bdc77efe681d5b88f3256e2bb6e706d4eaf09518 Mon Sep 17 00:00:00 2001
2 From: Peter Oh <peter.oh@bowerswilkins.com>
3 Date: Tue, 29 May 2018 14:39:11 -0700
4 Subject: [PATCH 07/18] 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 @@ -338,6 +338,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 @@ -349,8 +351,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);