diff options
Diffstat (limited to 'net/mac80211/rate.h')
-rw-r--r-- | net/mac80211/rate.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/net/mac80211/rate.h b/net/mac80211/rate.h index fbb1efdc4d04..6e4fd32c6617 100644 --- a/net/mac80211/rate.h +++ b/net/mac80211/rate.h | |||
@@ -17,6 +17,7 @@ | |||
17 | #include <net/mac80211.h> | 17 | #include <net/mac80211.h> |
18 | #include "ieee80211_i.h" | 18 | #include "ieee80211_i.h" |
19 | #include "sta_info.h" | 19 | #include "sta_info.h" |
20 | #include "driver-ops.h" | ||
20 | 21 | ||
21 | struct rate_control_ref { | 22 | struct rate_control_ref { |
22 | struct ieee80211_local *local; | 23 | struct ieee80211_local *local; |
@@ -63,8 +64,7 @@ static inline void rate_control_rate_init(struct sta_info *sta) | |||
63 | 64 | ||
64 | static inline void rate_control_rate_update(struct ieee80211_local *local, | 65 | static inline void rate_control_rate_update(struct ieee80211_local *local, |
65 | struct ieee80211_supported_band *sband, | 66 | struct ieee80211_supported_band *sband, |
66 | struct sta_info *sta, u32 changed, | 67 | struct sta_info *sta, u32 changed) |
67 | enum nl80211_channel_type oper_chan_type) | ||
68 | { | 68 | { |
69 | struct rate_control_ref *ref = local->rate_ctrl; | 69 | struct rate_control_ref *ref = local->rate_ctrl; |
70 | struct ieee80211_sta *ista = &sta->sta; | 70 | struct ieee80211_sta *ista = &sta->sta; |
@@ -72,7 +72,8 @@ static inline void rate_control_rate_update(struct ieee80211_local *local, | |||
72 | 72 | ||
73 | if (ref && ref->ops->rate_update) | 73 | if (ref && ref->ops->rate_update) |
74 | ref->ops->rate_update(ref->priv, sband, ista, | 74 | ref->ops->rate_update(ref->priv, sband, ista, |
75 | priv_sta, changed, oper_chan_type); | 75 | priv_sta, changed); |
76 | drv_sta_rc_update(local, sta->sdata, &sta->sta, changed); | ||
76 | } | 77 | } |
77 | 78 | ||
78 | static inline void *rate_control_alloc_sta(struct rate_control_ref *ref, | 79 | static inline void *rate_control_alloc_sta(struct rate_control_ref *ref, |