diff options
-rw-r--r-- | net/mac80211/ieee80211_i.h | 2 | ||||
-rw-r--r-- | net/mac80211/mlme.c | 16 |
2 files changed, 9 insertions, 9 deletions
diff --git a/net/mac80211/ieee80211_i.h b/net/mac80211/ieee80211_i.h index bff82a8e62f3..d5da0fe14318 100644 --- a/net/mac80211/ieee80211_i.h +++ b/net/mac80211/ieee80211_i.h | |||
@@ -364,7 +364,7 @@ enum ieee80211_sta_flags { | |||
364 | IEEE80211_STA_BEACON_POLL = BIT(0), | 364 | IEEE80211_STA_BEACON_POLL = BIT(0), |
365 | IEEE80211_STA_CONNECTION_POLL = BIT(1), | 365 | IEEE80211_STA_CONNECTION_POLL = BIT(1), |
366 | IEEE80211_STA_CONTROL_PORT = BIT(2), | 366 | IEEE80211_STA_CONTROL_PORT = BIT(2), |
367 | IEEE80211_STA_DISABLE_11N = BIT(4), | 367 | IEEE80211_STA_DISABLE_HT = BIT(4), |
368 | IEEE80211_STA_CSA_RECEIVED = BIT(5), | 368 | IEEE80211_STA_CSA_RECEIVED = BIT(5), |
369 | IEEE80211_STA_MFP_ENABLED = BIT(6), | 369 | IEEE80211_STA_MFP_ENABLED = BIT(6), |
370 | IEEE80211_STA_UAPSD_ENABLED = BIT(7), | 370 | IEEE80211_STA_UAPSD_ENABLED = BIT(7), |
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)) { |