diff options
author | Mahesh Palivela <maheshp@posedge.com> | 2012-10-10 07:33:04 -0400 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2012-10-17 05:02:14 -0400 |
commit | 818255ea47709065c53c86ca47fce96d8580bee1 (patch) | |
tree | 8557aca0148c4157ac580f6b3b11a6e94215714f /net/mac80211/mlme.c | |
parent | d4950281d72d8845225e3a39dbeb366c40c824c9 (diff) |
mac80211: VHT peer STA caps
Save the AP's VHT capabilities (in managed
mode) and make them available to the driver
in the station information.
Unlike HT capabilities, they aren't restricted
to the common capabilities, so drivers must be
aware of their own capabilities.
Signed-off-by: Mahesh Palivela <maheshp@posedge.com>
[fix endian conversion bug ...]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/mlme.c')
-rw-r--r-- | net/mac80211/mlme.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c index 4af5a3eb892e..ab39c4f44e5c 100644 --- a/net/mac80211/mlme.c +++ b/net/mac80211/mlme.c | |||
@@ -2156,6 +2156,11 @@ static bool ieee80211_assoc_success(struct ieee80211_sub_if_data *sdata, | |||
2156 | sta->supports_40mhz = | 2156 | sta->supports_40mhz = |
2157 | sta->sta.ht_cap.cap & IEEE80211_HT_CAP_SUP_WIDTH_20_40; | 2157 | sta->sta.ht_cap.cap & IEEE80211_HT_CAP_SUP_WIDTH_20_40; |
2158 | 2158 | ||
2159 | if (elems.vht_cap_elem && !(ifmgd->flags & IEEE80211_STA_DISABLE_VHT)) | ||
2160 | ieee80211_vht_cap_ie_to_sta_vht_cap(sdata, sband, | ||
2161 | elems.vht_cap_elem, | ||
2162 | &sta->sta.vht_cap); | ||
2163 | |||
2159 | rate_control_rate_init(sta); | 2164 | rate_control_rate_init(sta); |
2160 | 2165 | ||
2161 | if (ifmgd->flags & IEEE80211_STA_MFP_ENABLED) | 2166 | if (ifmgd->flags & IEEE80211_STA_MFP_ENABLED) |