hostapd: update packaging and patches
[openwrt/openwrt.git] / package / network / services / hostapd / patches / 013-mesh-do-not-allow-pri-sec-channel-switch.patch
1 From 267395271c1a36b54ef21070acff2cadce241035 Mon Sep 17 00:00:00 2001
2 From: Peter Oh <peter.oh@bowerswilkins.com>
3 Date: Tue, 29 May 2018 14:39:17 -0700
4 Subject: [PATCH 13/18] 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)) {