1 From 24fc73b2470ff79cd8c92e029ca785c8e95a204c Mon Sep 17 00:00:00 2001
2 From: Peter Oh <peter.oh@bowerswilkins.com>
3 Date: Wed, 18 Apr 2018 14:14:19 -0700
4 Subject: [PATCH 2/2] mesh: implement use of VHT20 config in mesh mode
6 mesh in VHT mode is supposed to be able to use any bandwidth
7 that 11ac supports, but we don't have a way to set VHT20
8 although there are parameters that are supposed to be used.
9 This patch along with the patch of
10 "mesh: add VHT_CHANWIDTH_USE_HT to max_oper_chwidth" makes mesh
11 available to use of any bandwidth using combination of
12 existing parameters like below shown.
16 do not set any parameters
29 Signed-off-by: Peter Oh <peter.oh@bowerswilkins.com>
31 wpa_supplicant/wpa_supplicant.c | 18 +++++++++++++-----
32 1 file changed, 13 insertions(+), 5 deletions(-)
34 --- a/wpa_supplicant/wpa_supplicant.c
35 +++ b/wpa_supplicant/wpa_supplicant.c
36 @@ -2117,9 +2117,15 @@ void ibss_mesh_setup_freq(struct wpa_sup
40 + freq->channel = pri_chan->chan;
42 #ifdef CONFIG_HT_OVERRIDES
43 - if (ssid->disable_ht40)
45 + if (ssid->disable_ht40) {
46 + if (ssid->disable_vht)
51 #endif /* CONFIG_HT_OVERRIDES */
53 /* Check/setup HT40+/HT40- */
54 @@ -2147,8 +2153,6 @@ void ibss_mesh_setup_freq(struct wpa_sup
58 - freq->channel = pri_chan->chan;
61 if (!(pri_chan->flag & HOSTAPD_CHAN_HT40MINUS))
63 @@ -2192,6 +2196,7 @@ void ibss_mesh_setup_freq(struct wpa_sup
64 wpa_scan_results_free(scan_res);
69 "IBSS/mesh: setup freq channel %d, sec_channel_offset %d",
70 freq->channel, freq->sec_channel_offset);
71 @@ -2287,7 +2292,10 @@ void ibss_mesh_setup_freq(struct wpa_sup
73 } else if (ssid->max_oper_chwidth == VHT_CHANWIDTH_USE_HT) {
74 chwidth = VHT_CHANWIDTH_USE_HT;
75 - seg0 = vht80[j] + 2;
76 + if (ssid->disable_ht40)
79 + seg0 = vht80[j] + 2;
82 if (hostapd_set_freq_params(&vht_freq, mode->mode, freq->freq,