aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath9k/rc.h
diff options
context:
space:
mode:
authorSujith <Sujith.Manoharan@atheros.com>2008-11-17 22:35:35 -0500
committerJohn W. Linville <linville@tuxdriver.com>2008-11-26 09:47:25 -0500
commit2b406f1e68dd5348384fd166ac532af46bfc87fc (patch)
treebf03d3978ae1fc8a2f900b18a56cffe37a7f8b7e /drivers/net/wireless/ath9k/rc.h
parent46494e6df8f6d9739d56c8b980229af4e5d2353f (diff)
ath9k: Nuke fixed rate handling in driver
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.h29
1 files changed, 1 insertions, 28 deletions
diff --git a/drivers/net/wireless/ath9k/rc.h b/drivers/net/wireless/ath9k/rc.h
index 2d8df836d533..8d0650a510a2 100644
--- a/drivers/net/wireless/ath9k/rc.h
+++ b/drivers/net/wireless/ath9k/rc.h
@@ -60,16 +60,6 @@ struct ath_softc;
60 60
61#define ATH_RATE_MAX 30 61#define ATH_RATE_MAX 30
62 62
63enum ieee80211_fixed_rate_mode {
64 IEEE80211_FIXED_RATE_NONE = 0,
65 IEEE80211_FIXED_RATE_MCS = 1 /* HT rates */
66};
67
68/*
69 * Use the hal os glue code to get ms time
70 */
71#define IEEE80211_RATE_IDX_ENTRY(val, idx) (((val&(0xff<<(idx*8)))>>(idx*8)))
72
73#define WLAN_PHY_HT_20_SS WLAN_RC_PHY_HT_20_SS 63#define WLAN_PHY_HT_20_SS WLAN_RC_PHY_HT_20_SS
74#define WLAN_PHY_HT_20_DS WLAN_RC_PHY_HT_20_DS 64#define WLAN_PHY_HT_20_DS WLAN_RC_PHY_HT_20_DS
75#define WLAN_PHY_HT_20_DS_HGI WLAN_RC_PHY_HT_20_DS_HGI 65#define WLAN_PHY_HT_20_DS_HGI WLAN_RC_PHY_HT_20_DS_HGI
@@ -287,27 +277,10 @@ struct ath_tx_info_priv {
287 u8 min_rate; 277 u8 min_rate;
288}; 278};
289 279
290/*
291 * Attach/detach a rate control module.
292 */
293struct ath_rate_softc *ath_rate_attach(struct ath_softc *sch); 280struct ath_rate_softc *ath_rate_attach(struct ath_softc *sch);
294void ath_rate_detach(struct ath_rate_softc *asc); 281void ath_rate_detach(struct ath_rate_softc *asc);
295
296/*
297 * Update/reset rate control state for 802.11 state transitions.
298 * Important mostly as the analog to ath_rate_newassoc when operating
299 * in station mode.
300 */
301void ath_rc_node_update(struct ieee80211_hw *hw, struct ath_rate_node *rc_priv); 282void ath_rc_node_update(struct ieee80211_hw *hw, struct ath_rate_node *rc_priv);
302void ath_rate_newstate(struct ath_softc *sc, struct ath_vap *avp); 283u8 ath_rate_findrateix(struct ath_softc *sc, u8 dot11_rate);
303
304/*
305 * Return rate index for given Dot11 Rate.
306 */
307u8 ath_rate_findrateix(struct ath_softc *sc,
308 u8 dot11_rate);
309
310/* Routines to register/unregister rate control algorithm */
311int ath_rate_control_register(void); 284int ath_rate_control_register(void);
312void ath_rate_control_unregister(void); 285void ath_rate_control_unregister(void);
313 286