aboutsummaryrefslogtreecommitdiffstats
path: root/net/wireless
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2015-01-15 10:05:21 -0500
committerJohannes Berg <johannes.berg@intel.com>2015-01-15 10:05:21 -0500
commit97d910d0aaa619ca530d08e2b1125b8014ccb030 (patch)
tree625396ac9ea52d46b9153f334ed7dcec77db8ee3 /net/wireless
parentf89903d53f4d39577be98940f7cfa49d66f86db5 (diff)
cfg80211: remove 80+80 MHz rate reporting
These rates are treated the same as 160 MHz in the spec, so it makes no sense to distinguish them. As no driver uses them yet, this is also not a problem, just remove them. In the userspace API the field remains reserved to preserve API and ABI. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/wireless')
-rw-r--r--net/wireless/nl80211.c3
-rw-r--r--net/wireless/util.c3
2 files changed, 1 insertions, 5 deletions
diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c
index 380784378df8..8998484ea970 100644
--- a/net/wireless/nl80211.c
+++ b/net/wireless/nl80211.c
@@ -3614,9 +3614,6 @@ static bool nl80211_put_sta_rate(struct sk_buff *msg, struct rate_info *info,
3614 if (info->flags & RATE_INFO_FLAGS_80_MHZ_WIDTH && 3614 if (info->flags & RATE_INFO_FLAGS_80_MHZ_WIDTH &&
3615 nla_put_flag(msg, NL80211_RATE_INFO_80_MHZ_WIDTH)) 3615 nla_put_flag(msg, NL80211_RATE_INFO_80_MHZ_WIDTH))
3616 return false; 3616 return false;
3617 if (info->flags & RATE_INFO_FLAGS_80P80_MHZ_WIDTH &&
3618 nla_put_flag(msg, NL80211_RATE_INFO_80P80_MHZ_WIDTH))
3619 return false;
3620 if (info->flags & RATE_INFO_FLAGS_160_MHZ_WIDTH && 3617 if (info->flags & RATE_INFO_FLAGS_160_MHZ_WIDTH &&
3621 nla_put_flag(msg, NL80211_RATE_INFO_160_MHZ_WIDTH)) 3618 nla_put_flag(msg, NL80211_RATE_INFO_160_MHZ_WIDTH))
3622 return false; 3619 return false;
diff --git a/net/wireless/util.c b/net/wireless/util.c
index d0ac795445b7..6942d48f1ac5 100644
--- a/net/wireless/util.c
+++ b/net/wireless/util.c
@@ -1073,8 +1073,7 @@ static u32 cfg80211_calculate_bitrate_vht(struct rate_info *rate)
1073 if (WARN_ON_ONCE(rate->mcs > 9)) 1073 if (WARN_ON_ONCE(rate->mcs > 9))
1074 return 0; 1074 return 0;
1075 1075
1076 idx = rate->flags & (RATE_INFO_FLAGS_160_MHZ_WIDTH | 1076 idx = rate->flags & RATE_INFO_FLAGS_160_MHZ_WIDTH ? 3 :
1077 RATE_INFO_FLAGS_80P80_MHZ_WIDTH) ? 3 :
1078 rate->flags & RATE_INFO_FLAGS_80_MHZ_WIDTH ? 2 : 1077 rate->flags & RATE_INFO_FLAGS_80_MHZ_WIDTH ? 2 :
1079 rate->flags & RATE_INFO_FLAGS_40_MHZ_WIDTH ? 1 : 0; 1078 rate->flags & RATE_INFO_FLAGS_40_MHZ_WIDTH ? 1 : 0;
1080 1079