Allow HT to be enabled for a STA even without WMM

The STA won't be able to use block ACK/aggregation, but at least it
should be allowed to use MCS rates and HT40.
This commit is contained in:
Jouni Malinen 2008-12-22 13:05:33 +02:00 committed by Jouni Malinen
parent 45832ddd4d
commit f130ba9b4a

View file

@ -807,9 +807,8 @@ static void handle_assoc(struct hostapd_data *hapd,
/* save HT capabilities in the sta object */ /* save HT capabilities in the sta object */
os_memset(&sta->ht_capabilities, 0, sizeof(sta->ht_capabilities)); os_memset(&sta->ht_capabilities, 0, sizeof(sta->ht_capabilities));
if (elems.ht_capabilities && if (elems.ht_capabilities &&
elems.ht_capabilities_len >= sizeof(struct ieee80211_ht_capability) elems.ht_capabilities_len >=
&& (sta->flags & WLAN_STA_WME)) { sizeof(struct ieee80211_ht_capability)) {
/* note: without WMM capability, treat the sta as non-HT */
sta->flags |= WLAN_STA_HT; sta->flags |= WLAN_STA_HT;
sta->ht_capabilities.id = WLAN_EID_HT_CAP; sta->ht_capabilities.id = WLAN_EID_HT_CAP;
sta->ht_capabilities.length = sta->ht_capabilities.length =