d8722c7cf91d864452afd93b097c6b3f59097cab
[openwrt/openwrt.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 @@ -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);