hostapd: update to git snapshot of 2018-04-09
[openwrt/openwrt.git] / package / network / services / hostapd / patches / 0113-mesh-do-not-allow-pri-sec-channel-switch.patch
1 From 5fe4fa1c1f426d81496458d2127bfbd7623fe5d5 Mon Sep 17 00:00:00 2001
2 From: Peter Oh <peter.oh@bowerswilkins.com>
3 Date: Thu, 12 Apr 2018 02:49:10 -0700
4 Subject: [PATCH 13/15] mesh: do not allow pri/sec channel switch
5
6 We don't want mesh to switch the channel from primary to secondary,
7 since mesh points are not able to join each other in that case.
8
9 Signed-off-by: Peter Oh <peter.oh@bowerswilkins.com>
10 ---
11 wpa_supplicant/mesh.c | 5 ++++-
12 1 file changed, 4 insertions(+), 1 deletion(-)
13
14 --- a/wpa_supplicant/mesh.c
15 +++ b/wpa_supplicant/mesh.c
16 @@ -333,7 +333,10 @@ static int wpa_supplicant_mesh_init(stru
17 rate_len * sizeof(int));
18 conf->basic_rates[rate_len] = -1;
19 }
20 -
21 + /* Do not allow primary/secondary channel switch in mesh mode,
22 + * since mesh is not able to establish a physical link for it
23 + */
24 + conf->no_pri_sec_switch = 1;
25 wpa_supplicant_conf_ap_ht(wpa_s, ssid, conf);
26
27 if (wpa_drv_init_mesh(wpa_s)) {