diff options
author | Johannes Berg <johannes.berg@intel.com> | 2012-11-22 08:32:09 -0500 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2012-11-23 02:43:26 -0500 |
commit | a8243b72459be78240e5e07f987c625f8d976c14 (patch) | |
tree | 796309c8fd3ea895cd428fd1e9db45b80fb883e8 /net/mac80211/mlme.c | |
parent | 76c5fa0fb99e694e123f05f62382b717b857b6a9 (diff) |
mac80211: rename IEEE80211_STA_DISABLE_11N to HT
Since the 11n spec amendment was rolled into the
2012 version, "11n" no longer makes sense. Use
"HT" instead.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/mlme.c')
-rw-r--r-- | net/mac80211/mlme.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c index 19969ecf9309..42b2c3fc470c 100644 --- a/net/mac80211/mlme.c +++ b/net/mac80211/mlme.c | |||
@@ -541,7 +541,7 @@ static void ieee80211_send_assoc(struct ieee80211_sub_if_data *sdata) | |||
541 | offset = noffset; | 541 | offset = noffset; |
542 | } | 542 | } |
543 | 543 | ||
544 | if (!(ifmgd->flags & IEEE80211_STA_DISABLE_11N)) | 544 | if (!(ifmgd->flags & IEEE80211_STA_DISABLE_HT)) |
545 | ieee80211_add_ht_ie(sdata, skb, assoc_data->ap_ht_param, | 545 | ieee80211_add_ht_ie(sdata, skb, assoc_data->ap_ht_param, |
546 | sband, chan, sdata->smps_mode); | 546 | sband, chan, sdata->smps_mode); |
547 | 547 | ||
@@ -2170,7 +2170,7 @@ static bool ieee80211_assoc_success(struct ieee80211_sub_if_data *sdata, | |||
2170 | 2170 | ||
2171 | sband = local->hw.wiphy->bands[ieee80211_get_sdata_band(sdata)]; | 2171 | sband = local->hw.wiphy->bands[ieee80211_get_sdata_band(sdata)]; |
2172 | 2172 | ||
2173 | if (elems.ht_cap_elem && !(ifmgd->flags & IEEE80211_STA_DISABLE_11N)) | 2173 | if (elems.ht_cap_elem && !(ifmgd->flags & IEEE80211_STA_DISABLE_HT)) |
2174 | ieee80211_ht_cap_ie_to_sta_ht_cap(sdata, sband, | 2174 | ieee80211_ht_cap_ie_to_sta_ht_cap(sdata, sband, |
2175 | elems.ht_cap_elem, &sta->sta.ht_cap); | 2175 | elems.ht_cap_elem, &sta->sta.ht_cap); |
2176 | 2176 | ||
@@ -2222,7 +2222,7 @@ static bool ieee80211_assoc_success(struct ieee80211_sub_if_data *sdata, | |||
2222 | changed |= BSS_CHANGED_QOS; | 2222 | changed |= BSS_CHANGED_QOS; |
2223 | 2223 | ||
2224 | if (elems.ht_operation && elems.wmm_param && | 2224 | if (elems.ht_operation && elems.wmm_param && |
2225 | !(ifmgd->flags & IEEE80211_STA_DISABLE_11N)) | 2225 | !(ifmgd->flags & IEEE80211_STA_DISABLE_HT)) |
2226 | changed |= ieee80211_config_ht_tx(sdata, elems.ht_operation, | 2226 | changed |= ieee80211_config_ht_tx(sdata, elems.ht_operation, |
2227 | cbss->bssid, false); | 2227 | cbss->bssid, false); |
2228 | 2228 | ||
@@ -2658,7 +2658,7 @@ static void ieee80211_rx_mgmt_beacon(struct ieee80211_sub_if_data *sdata, | |||
2658 | 2658 | ||
2659 | 2659 | ||
2660 | if (elems.ht_cap_elem && elems.ht_operation && elems.wmm_param && | 2660 | if (elems.ht_cap_elem && elems.ht_operation && elems.wmm_param && |
2661 | !(ifmgd->flags & IEEE80211_STA_DISABLE_11N)) | 2661 | !(ifmgd->flags & IEEE80211_STA_DISABLE_HT)) |
2662 | changed |= ieee80211_config_ht_tx(sdata, elems.ht_operation, | 2662 | changed |= ieee80211_config_ht_tx(sdata, elems.ht_operation, |
2663 | bssid, true); | 2663 | bssid, true); |
2664 | 2664 | ||
@@ -3555,7 +3555,7 @@ int ieee80211_mgd_assoc(struct ieee80211_sub_if_data *sdata, | |||
3555 | if (req->crypto.ciphers_pairwise[i] == WLAN_CIPHER_SUITE_WEP40 || | 3555 | if (req->crypto.ciphers_pairwise[i] == WLAN_CIPHER_SUITE_WEP40 || |
3556 | req->crypto.ciphers_pairwise[i] == WLAN_CIPHER_SUITE_TKIP || | 3556 | req->crypto.ciphers_pairwise[i] == WLAN_CIPHER_SUITE_TKIP || |
3557 | req->crypto.ciphers_pairwise[i] == WLAN_CIPHER_SUITE_WEP104) { | 3557 | req->crypto.ciphers_pairwise[i] == WLAN_CIPHER_SUITE_WEP104) { |
3558 | ifmgd->flags |= IEEE80211_STA_DISABLE_11N; | 3558 | ifmgd->flags |= IEEE80211_STA_DISABLE_HT; |
3559 | ifmgd->flags |= IEEE80211_STA_DISABLE_VHT; | 3559 | ifmgd->flags |= IEEE80211_STA_DISABLE_VHT; |
3560 | netdev_info(sdata->dev, | 3560 | netdev_info(sdata->dev, |
3561 | "disabling HT/VHT due to WEP/TKIP use\n"); | 3561 | "disabling HT/VHT due to WEP/TKIP use\n"); |
@@ -3563,7 +3563,7 @@ int ieee80211_mgd_assoc(struct ieee80211_sub_if_data *sdata, | |||
3563 | } | 3563 | } |
3564 | 3564 | ||
3565 | if (req->flags & ASSOC_REQ_DISABLE_HT) { | 3565 | if (req->flags & ASSOC_REQ_DISABLE_HT) { |
3566 | ifmgd->flags |= IEEE80211_STA_DISABLE_11N; | 3566 | ifmgd->flags |= IEEE80211_STA_DISABLE_HT; |
3567 | ifmgd->flags |= IEEE80211_STA_DISABLE_VHT; | 3567 | ifmgd->flags |= IEEE80211_STA_DISABLE_VHT; |
3568 | } | 3568 | } |
3569 | 3569 | ||
@@ -3571,7 +3571,7 @@ int ieee80211_mgd_assoc(struct ieee80211_sub_if_data *sdata, | |||
3571 | sband = local->hw.wiphy->bands[req->bss->channel->band]; | 3571 | sband = local->hw.wiphy->bands[req->bss->channel->band]; |
3572 | if (!sband->ht_cap.ht_supported || | 3572 | if (!sband->ht_cap.ht_supported || |
3573 | local->hw.queues < IEEE80211_NUM_ACS || !bss->wmm_used) { | 3573 | local->hw.queues < IEEE80211_NUM_ACS || !bss->wmm_used) { |
3574 | ifmgd->flags |= IEEE80211_STA_DISABLE_11N; | 3574 | ifmgd->flags |= IEEE80211_STA_DISABLE_HT; |
3575 | if (!bss->wmm_used) | 3575 | if (!bss->wmm_used) |
3576 | netdev_info(sdata->dev, | 3576 | netdev_info(sdata->dev, |
3577 | "disabling HT as WMM/QoS is not supported by the AP\n"); | 3577 | "disabling HT as WMM/QoS is not supported by the AP\n"); |
@@ -3616,7 +3616,7 @@ int ieee80211_mgd_assoc(struct ieee80211_sub_if_data *sdata, | |||
3616 | assoc_data->ap_ht_param = | 3616 | assoc_data->ap_ht_param = |
3617 | ((struct ieee80211_ht_operation *)(ht_ie + 2))->ht_param; | 3617 | ((struct ieee80211_ht_operation *)(ht_ie + 2))->ht_param; |
3618 | else | 3618 | else |
3619 | ifmgd->flags |= IEEE80211_STA_DISABLE_11N; | 3619 | ifmgd->flags |= IEEE80211_STA_DISABLE_HT; |
3620 | 3620 | ||
3621 | if (bss->wmm_used && bss->uapsd_supported && | 3621 | if (bss->wmm_used && bss->uapsd_supported && |
3622 | (sdata->local->hw.flags & IEEE80211_HW_SUPPORTS_UAPSD)) { | 3622 | (sdata->local->hw.flags & IEEE80211_HW_SUPPORTS_UAPSD)) { |