aboutsummaryrefslogtreecommitdiffstats
path: root/net/wireless
diff options
context:
space:
mode:
authorJanusz Dziedzic <janusz.dziedzic@tieto.com>2013-12-05 04:02:15 -0500
committerJohannes Berg <johannes.berg@intel.com>2013-12-05 10:39:07 -0500
commitd1e33e654ef6bb3dee766353ed9dd31e7dcb8a94 (patch)
tree7b5d1f16c019183dc4110782ae621e670b057c0c /net/wireless
parentb9243ab0c9e3e4dbd54ae8f44cf0cdb5838c8746 (diff)
cfg80211: in bitrate_mask, rename mcs to ht_mcs
Rename NL80211_TXRATE_MCS to NL80211_TXRATE_HT and also rename mcs to ht_mcs in struct cfg80211_bitrate_mask. Signed-off-by: Janusz Dziedzic <janusz.dziedzic@tieto.com> [reword commit message] Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/wireless')
-rw-r--r--net/wireless/nl80211.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c
index f61b74c40d28..801e57da88b4 100644
--- a/net/wireless/nl80211.c
+++ b/net/wireless/nl80211.c
@@ -7312,8 +7312,8 @@ static bool ht_rateset_to_mask(struct ieee80211_supported_band *sband,
7312static const struct nla_policy nl80211_txattr_policy[NL80211_TXRATE_MAX + 1] = { 7312static const struct nla_policy nl80211_txattr_policy[NL80211_TXRATE_MAX + 1] = {
7313 [NL80211_TXRATE_LEGACY] = { .type = NLA_BINARY, 7313 [NL80211_TXRATE_LEGACY] = { .type = NLA_BINARY,
7314 .len = NL80211_MAX_SUPP_RATES }, 7314 .len = NL80211_MAX_SUPP_RATES },
7315 [NL80211_TXRATE_MCS] = { .type = NLA_BINARY, 7315 [NL80211_TXRATE_HT] = { .type = NLA_BINARY,
7316 .len = NL80211_MAX_SUPP_HT_RATES }, 7316 .len = NL80211_MAX_SUPP_HT_RATES },
7317}; 7317};
7318 7318
7319static int nl80211_set_tx_bitrate_mask(struct sk_buff *skb, 7319static int nl80211_set_tx_bitrate_mask(struct sk_buff *skb,
@@ -7339,9 +7339,9 @@ static int nl80211_set_tx_bitrate_mask(struct sk_buff *skb,
7339 continue; 7339 continue;
7340 7340
7341 mask.control[i].legacy = (1 << sband->n_bitrates) - 1; 7341 mask.control[i].legacy = (1 << sband->n_bitrates) - 1;
7342 memcpy(mask.control[i].mcs, 7342 memcpy(mask.control[i].ht_mcs,
7343 sband->ht_cap.mcs.rx_mask, 7343 sband->ht_cap.mcs.rx_mask,
7344 sizeof(mask.control[i].mcs)); 7344 sizeof(mask.control[i].ht_mcs));
7345 } 7345 }
7346 7346
7347 /* if no rates are given set it back to the defaults */ 7347 /* if no rates are given set it back to the defaults */
@@ -7372,12 +7372,12 @@ static int nl80211_set_tx_bitrate_mask(struct sk_buff *skb,
7372 nla_len(tb[NL80211_TXRATE_LEGACY])) 7372 nla_len(tb[NL80211_TXRATE_LEGACY]))
7373 return -EINVAL; 7373 return -EINVAL;
7374 } 7374 }
7375 if (tb[NL80211_TXRATE_MCS]) { 7375 if (tb[NL80211_TXRATE_HT]) {
7376 if (!ht_rateset_to_mask( 7376 if (!ht_rateset_to_mask(
7377 sband, 7377 sband,
7378 nla_data(tb[NL80211_TXRATE_MCS]), 7378 nla_data(tb[NL80211_TXRATE_HT]),
7379 nla_len(tb[NL80211_TXRATE_MCS]), 7379 nla_len(tb[NL80211_TXRATE_HT]),
7380 mask.control[band].mcs)) 7380 mask.control[band].ht_mcs))
7381 return -EINVAL; 7381 return -EINVAL;
7382 } 7382 }
7383 7383
@@ -7388,7 +7388,7 @@ static int nl80211_set_tx_bitrate_mask(struct sk_buff *skb,
7388 return -EINVAL; 7388 return -EINVAL;
7389 7389
7390 for (i = 0; i < IEEE80211_HT_MCS_MASK_LEN; i++) 7390 for (i = 0; i < IEEE80211_HT_MCS_MASK_LEN; i++)
7391 if (mask.control[band].mcs[i]) 7391 if (mask.control[band].ht_mcs[i])
7392 break; 7392 break;
7393 7393
7394 /* legacy and mcs rates may not be both empty */ 7394 /* legacy and mcs rates may not be both empty */