diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2008-09-10 20:22:58 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-09-15 16:48:24 -0400 |
commit | b7e35008815a1c39123f4dd53b430788e2e18da4 (patch) | |
tree | a071c5d2c1224eed68a3684b6367155b1eccfebf /net/mac80211 | |
parent | 95dac040041723d0c0ab245642c1b9802f12cc8d (diff) |
mac80211: move last_txrate_idx into RC algorithms
This variable in sta_info is only used in a meaningful way
by the Intel RC algorithms, so move it into those.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211')
-rw-r--r-- | net/mac80211/rc80211_pid_algo.c | 2 | ||||
-rw-r--r-- | net/mac80211/sta_info.h | 2 |
2 files changed, 0 insertions, 4 deletions
diff --git a/net/mac80211/rc80211_pid_algo.c b/net/mac80211/rc80211_pid_algo.c index 94867860c3e0..24e44f521302 100644 --- a/net/mac80211/rc80211_pid_algo.c +++ b/net/mac80211/rc80211_pid_algo.c | |||
@@ -329,8 +329,6 @@ static void rate_control_pid_get_rate(void *priv, struct net_device *dev, | |||
329 | if (rateidx >= sband->n_bitrates) | 329 | if (rateidx >= sband->n_bitrates) |
330 | rateidx = sband->n_bitrates - 1; | 330 | rateidx = sband->n_bitrates - 1; |
331 | 331 | ||
332 | sta->last_txrate_idx = rateidx; | ||
333 | |||
334 | rcu_read_unlock(); | 332 | rcu_read_unlock(); |
335 | 333 | ||
336 | sel->rate_idx = rateidx; | 334 | sel->rate_idx = rateidx; |
diff --git a/net/mac80211/sta_info.h b/net/mac80211/sta_info.h index 4a9b96eeb687..df42d1815458 100644 --- a/net/mac80211/sta_info.h +++ b/net/mac80211/sta_info.h | |||
@@ -200,7 +200,6 @@ struct sta_ampdu_mlme { | |||
200 | * @tx_bytes: TBD | 200 | * @tx_bytes: TBD |
201 | * @tx_fragments: number of transmitted MPDUs | 201 | * @tx_fragments: number of transmitted MPDUs |
202 | * @txrate_idx: TBD | 202 | * @txrate_idx: TBD |
203 | * @last_txrate_idx: TBD | ||
204 | * @tid_seq: TBD | 203 | * @tid_seq: TBD |
205 | * @wme_tx_queue: TBD | 204 | * @wme_tx_queue: TBD |
206 | * @ampdu_mlme: TBD | 205 | * @ampdu_mlme: TBD |
@@ -278,7 +277,6 @@ struct sta_info { | |||
278 | unsigned long tx_bytes; | 277 | unsigned long tx_bytes; |
279 | unsigned long tx_fragments; | 278 | unsigned long tx_fragments; |
280 | int txrate_idx; | 279 | int txrate_idx; |
281 | int last_txrate_idx; | ||
282 | u16 tid_seq[IEEE80211_QOS_CTL_TID_MASK + 1]; | 280 | u16 tid_seq[IEEE80211_QOS_CTL_TID_MASK + 1]; |
283 | #ifdef CONFIG_MAC80211_DEBUG_COUNTERS | 281 | #ifdef CONFIG_MAC80211_DEBUG_COUNTERS |
284 | unsigned int wme_tx_queue[NUM_RX_DATA_QUEUES]; | 282 | unsigned int wme_tx_queue[NUM_RX_DATA_QUEUES]; |