[PATCH] Enabling 802.11ac (VHT) mode

Jose Blanquicet blanquicet at gmail.com
Mon Jun 13 07:53:08 PDT 2016


When an AP is trying to be enabled in 802.11ac (VHT) mode by setting its 
parameter disable_vht to 0, it is not actually enabled and it's set to HT. 

Looking at the source code it was found that the variable used to check 
whether to enable or not the VHT is ssid->vht but it has not been set 
before. Instead, the variable ssid->disable_vht stores the actual network 
parameter which indicates if the VHT has been disabled or not. 

Is it OK? Or there is something I am missing to correctly set wpa_supplicant 
in AC mode?

---
 wpa_supplicant/ap.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/wpa_supplicant/ap.c b/wpa_supplicant/ap.c
index 1e00f35..def2ae1 100644
--- a/wpa_supplicant/ap.c
+++ b/wpa_supplicant/ap.c
@@ -166,7 +166,7 @@ int wpa_supplicant_conf_ap_ht(struct wpa_supplicant *wpa_s,
 				 HT_CAP_INFO_TX_STBC |
 				 HT_CAP_INFO_MAX_AMSDU_SIZE);
 
-			if (mode->vht_capab && ssid->vht) {
+			if (mode->vht_capab && !ssid->disable_vht) {
 				conf->ieee80211ac = 1;
 				wpas_conf_ap_vht(wpa_s, conf, mode);
 			}
-- 
1.9.1




More information about the Hostap mailing list