A VHT STA is a HT STA. If a VHT STA has an invalid HT Capabilities element, the HT capability of the STA is deactivated but the VHT capability is still activated and the element copied. Deactivate the VHT capability of a STA if it is not a HT STA. Signed-off-by: Pablo Martin-Gomez <pmartin-gomez@xxxxxxxxxx> --- src/ap/ieee802_11_vht.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ap/ieee802_11_vht.c b/src/ap/ieee802_11_vht.c index df5f8cf76..7415635bf 100644 --- a/src/ap/ieee802_11_vht.c +++ b/src/ap/ieee802_11_vht.c @@ -190,7 +190,8 @@ u16 copy_sta_vht_capab(struct hostapd_data *hapd, struct sta_info *sta, /* Disable VHT caps for STAs associated to no-VHT BSSes. */ if (!vht_capab || !(sta->flags & WLAN_STA_WMM) || !hapd->iconf->ieee80211ac || hapd->conf->disable_11ac || - !check_valid_vht_mcs(hapd->iface->current_mode, vht_capab)) { + !check_valid_vht_mcs(hapd->iface->current_mode, vht_capab) || + !(sta->flags & WLAN_STA_HT)) { sta->flags &= ~WLAN_STA_VHT; os_free(sta->vht_capabilities); sta->vht_capabilities = NULL; -- 2.43.0 _______________________________________________ Hostap mailing list Hostap@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/hostap