aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/rate.h
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2012-03-28 04:58:37 -0400
committerJohn W. Linville <linville@tuxdriver.com>2012-04-10 14:54:08 -0400
commit64f68e5d15bee47e0d6d0c57a1cf52cedd9b3527 (patch)
treee000cea46fd57d876d725224d2b51b74cec35572 /net/mac80211/rate.h
parent24398e39c8ee4a9d9123eed322b859ece4d16cac (diff)
mac80211: remove channel type argument from rate_update
The channel type argument to the rate_update() callback isn't really the correct way to give the rate control algorithm about the desired RX bandwidth of the peer. Remove this argument, and instead update the STA capabilities with 20/40 appropriately. The SMPS update done by this callback works in the same way, so this makes the callback cleaner. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/rate.h')
-rw-r--r--net/mac80211/rate.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/net/mac80211/rate.h b/net/mac80211/rate.h
index fbb1efdc4d04..27b66be8ac8f 100644
--- a/net/mac80211/rate.h
+++ b/net/mac80211/rate.h
@@ -63,8 +63,7 @@ static inline void rate_control_rate_init(struct sta_info *sta)
63 63
64static inline void rate_control_rate_update(struct ieee80211_local *local, 64static inline void rate_control_rate_update(struct ieee80211_local *local,
65 struct ieee80211_supported_band *sband, 65 struct ieee80211_supported_band *sband,
66 struct sta_info *sta, u32 changed, 66 struct sta_info *sta, u32 changed)
67 enum nl80211_channel_type oper_chan_type)
68{ 67{
69 struct rate_control_ref *ref = local->rate_ctrl; 68 struct rate_control_ref *ref = local->rate_ctrl;
70 struct ieee80211_sta *ista = &sta->sta; 69 struct ieee80211_sta *ista = &sta->sta;
@@ -72,7 +71,7 @@ static inline void rate_control_rate_update(struct ieee80211_local *local,
72 71
73 if (ref && ref->ops->rate_update) 72 if (ref && ref->ops->rate_update)
74 ref->ops->rate_update(ref->priv, sband, ista, 73 ref->ops->rate_update(ref->priv, sband, ista,
75 priv_sta, changed, oper_chan_type); 74 priv_sta, changed);
76} 75}
77 76
78static inline void *rate_control_alloc_sta(struct rate_control_ref *ref, 77static inline void *rate_control_alloc_sta(struct rate_control_ref *ref,