Allow HT to be enabled for a STA even without WMM
authorJouni Malinen <jouni.malinen@atheros.com>
Mon, 22 Dec 2008 11:05:33 +0000 (13:05 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 22 Dec 2008 11:05:33 +0000 (13:05 +0200)
The STA won't be able to use block ACK/aggregation, but at least it
should be allowed to use MCS rates and HT40.

hostapd/ieee802_11.c

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