Signed-off-by: Masashi Honma <masashi.honma@xxxxxxxxx> --- 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 _______________________________________________ Hostap mailing list Hostap@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/hostap