86da251ffa12f6de6164113a67e6f242aa82bd22
[openwrt/staging/nbd.git] /
1 From 8190aab3344ae9746c897093f88f3679239d135d Mon Sep 17 00:00:00 2001
2 From: Peter Oh <peter.oh@bowerswilkins.com>
3 Date: Tue, 17 Apr 2018 21:55:04 -0700
4 Subject: [PATCH 07/16] 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 @@ -337,6 +337,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 @@ -348,8 +350,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);