8a9818b187d132c27d907c82b1c50e3707d287b0
[openwrt/openwrt.git] / package / network / services / hostapd / patches / 013-mesh-do-not-allow-pri-sec-channel-switch.patch
1 From d7ae7271dce4203bfcd79a230acb24f03f38633d Mon Sep 17 00:00:00 2001
2 From: Peter Oh <peter.oh@bowerswilkins.com>
3 Date: Tue, 17 Apr 2018 21:55:10 -0700
4 Subject: [PATCH 13/16] 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 @@ -337,7 +337,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)) {