]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
IBSS/mesh: Skip VHT channel setup with vht_disabled=1
authorJouni Malinen <j@w1.fi>
Sun, 29 Jan 2017 16:10:24 +0000 (18:10 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 29 Jan 2017 16:31:54 +0000 (18:31 +0200)
If the VHT capability override vht_disabled=1 is used in the network
profile, skip VHT configuration of the local channel.

Signed-off-by: Jouni Malinen <j@w1.fi>
wpa_supplicant/wpa_supplicant.c

index 1c02020ad5e7be4f42c53bbb013f757042b40b4c..83c5e94df2423ebef963d5b02387be796c9d1890 100644 (file)
@@ -2071,6 +2071,13 @@ void ibss_mesh_setup_freq(struct wpa_supplicant *wpa_s,
 
        vht_freq = *freq;
 
+#ifdef CONFIG_VHT_OVERRIDES
+       if (ssid->disable_vht) {
+               freq->vht_enabled = 0;
+               return;
+       }
+#endif /* CONFIG_VHT_OVERRIDES */
+
        vht_freq.vht_enabled = vht_supported(mode);
        if (!vht_freq.vht_enabled)
                return;