Browse Source

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.
Jouni Malinen 16 years ago
parent
commit
f130ba9b4a
1 changed files with 2 additions and 3 deletions
  1. 2 3
      hostapd/ieee802_11.c

+ 2 - 3
hostapd/ieee802_11.c

@@ -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 =