aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath9k/rc.h
diff options
context:
space:
mode:
authorSujith <Sujith.Manoharan@atheros.com>2008-11-17 22:37:06 -0500
committerJohn W. Linville <linville@tuxdriver.com>2008-11-26 09:47:28 -0500
commitfe7f4a77450c1d0e463a9b1456b40c2305433e41 (patch)
treee6f3b4532b1d5bda3e9863df21e48d0adc22522d /drivers/net/wireless/ath9k/rc.h
parent5ddfac3b550250388f1222ec7d09069784a68af6 (diff)
ath9k: Remove ath_rate_softc
Move the hw rate tables to ath_softc, and access them directly. tx_triglevel_max is global, move it to ath_rate_node. Now that ath_rate_softc is gone, rate control attach becomes simpler. Signed-off-by: Sujith <Sujith.Manoharan@atheros.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath9k/rc.h')
-rw-r--r--drivers/net/wireless/ath9k/rc.h13
1 files changed, 2 insertions, 11 deletions
diff --git a/drivers/net/wireless/ath9k/rc.h b/drivers/net/wireless/ath9k/rc.h
index 07319c6c2e02..30248de5b2b6 100644
--- a/drivers/net/wireless/ath9k/rc.h
+++ b/drivers/net/wireless/ath9k/rc.h
@@ -199,15 +199,6 @@ struct ath_rateset {
199 u8 rs_rates[ATH_RATE_MAX]; 199 u8 rs_rates[ATH_RATE_MAX];
200}; 200};
201 201
202/* per-device state */
203struct ath_rate_softc {
204 /* phy tables that contain rate control data */
205 const void *hw_rate_table[ATH9K_MODE_MAX];
206
207 /* -1 or index of fixed rate */
208 int fixedrix;
209};
210
211/** 202/**
212 * struct ath_rate_node - Rate Control priv data 203 * struct ath_rate_node - Rate Control priv data
213 * @state: RC state 204 * @state: RC state
@@ -261,6 +252,7 @@ struct ath_rate_node {
261 u32 per_down_time; 252 u32 per_down_time;
262 u32 probe_interval; 253 u32 probe_interval;
263 u32 prev_data_rix; 254 u32 prev_data_rix;
255 u32 tx_triglevel_max;
264 struct ath_tx_ratectrl_state state[MAX_TX_RATE_TBL]; 256 struct ath_tx_ratectrl_state state[MAX_TX_RATE_TBL];
265 struct ath_rateset neg_rates; 257 struct ath_rateset neg_rates;
266 struct ath_rateset neg_ht_rates; 258 struct ath_rateset neg_ht_rates;
@@ -276,8 +268,7 @@ struct ath_tx_info_priv {
276 u8 min_rate; 268 u8 min_rate;
277}; 269};
278 270
279struct ath_rate_softc *ath_rate_attach(struct ath_softc *sch); 271void ath_rate_attach(struct ath_softc *sc);
280void ath_rate_detach(struct ath_rate_softc *asc);
281u8 ath_rate_findrateix(struct ath_softc *sc, u8 dot11_rate); 272u8 ath_rate_findrateix(struct ath_softc *sc, u8 dot11_rate);
282int ath_rate_control_register(void); 273int ath_rate_control_register(void);
283void ath_rate_control_unregister(void); 274void ath_rate_control_unregister(void);