diff mbox series

mesh: encapsulate VHT property with the proper CONFIG entry

Message ID 20200309171816.5634-1-arturo.buzarra@digi.com
State Accepted
Headers show
Series mesh: encapsulate VHT property with the proper CONFIG entry | expand

Commit Message

Arturo Buzarra March 9, 2020, 5:18 p.m. UTC
Committ e5a9b1e8a3 ("mesh: Implement use of VHT20 config in mesh mode")
introduced the possibility to check the disable_vht param, however this
entry is only available when CONFIG_VHT_OVERRIDES is enabled

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
---
 wpa_supplicant/wpa_supplicant.c | 2 ++
 1 file changed, 2 insertions(+)

Comments

Jouni Malinen March 10, 2020, 9:15 p.m. UTC | #1
On Mon, Mar 09, 2020 at 06:18:16PM +0100, Arturo Buzarra wrote:
> Committ e5a9b1e8a3 ("mesh: Implement use of VHT20 config in mesh mode")
> introduced the possibility to check the disable_vht param, however this
> entry is only available when CONFIG_VHT_OVERRIDES is enabled

Thanks, applied.
diff mbox series

Patch

diff --git a/wpa_supplicant/wpa_supplicant.c b/wpa_supplicant/wpa_supplicant.c
index 839afe32d..ba8ae65ae 100644
--- a/wpa_supplicant/wpa_supplicant.c
+++ b/wpa_supplicant/wpa_supplicant.c
@@ -2394,12 +2394,14 @@  void ibss_mesh_setup_freq(struct wpa_supplicant *wpa_s,

 	freq->channel = pri_chan->chan;

 #ifdef CONFIG_HT_OVERRIDES
 	if (ssid->disable_ht40) {
+#ifdef CONFIG_VHT_OVERRIDES
 		if (ssid->disable_vht)
 			return;
+#endif /* CONFIG_VHT_OVERRIDES */
 		goto skip_ht40;
 	}
 #endif /* CONFIG_HT_OVERRIDES */

 	/* Check/setup HT40+/HT40- */