[PATCH 2/3] VHT: Add VHT capabilities checks to IBSS/mesh

Masashi Honma masashi.honma at gmail.com
Mon Feb 13 21:13:43 PST 2017


Signed-off-by: Masashi Honma <masashi.honma at gmail.com>
---
 wpa_supplicant/wpa_supplicant.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/wpa_supplicant/wpa_supplicant.c b/wpa_supplicant/wpa_supplicant.c
index 11bb7b9..08de6f6 100644
--- a/wpa_supplicant/wpa_supplicant.c
+++ b/wpa_supplicant/wpa_supplicant.c
@@ -1883,10 +1883,10 @@ static int drv_supports_vht(struct wpa_supplicant *wpa_s,
 		}
 	}
 
-	if (!mode)
+	if (!mode || mode->vht_capab == 0)
 		return 0;
 
-	return mode->vht_capab != 0;
+	return !ieee80211ac_cap_check(mode->vht_capab, ssid->vht_capa);
 }
 
 
-- 
2.7.4




More information about the Hostap mailing list