aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath9k/rc.h
diff options
context:
space:
mode:
authorSujith <Sujith.Manoharan@atheros.com>2008-11-17 22:37:30 -0500
committerJohn W. Linville <linville@tuxdriver.com>2008-11-26 09:47:29 -0500
commita8efee4f4740c61fccaf73608df282c4ee24ae86 (patch)
tree62cf022a48bf59ee93c31817ce0bc251e9f95812 /drivers/net/wireless/ath9k/rc.h
parentfe7f4a77450c1d0e463a9b1456b40c2305433e41 (diff)
ath9k: Use rate_driver_data
Remove the hack using vif, and use rate_driver_data within skb->cb to hold driver specific rate information. Setup the rate series in the skb's tx control area and remove all references to ath9k specific rate series ( using struct ath_rc_series ). 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.h17
1 files changed, 0 insertions, 17 deletions
diff --git a/drivers/net/wireless/ath9k/rc.h b/drivers/net/wireless/ath9k/rc.h
index 30248de5b2b6..3324bed3f0ac 100644
--- a/drivers/net/wireless/ath9k/rc.h
+++ b/drivers/net/wireless/ath9k/rc.h
@@ -169,20 +169,6 @@ struct ath_rate_table {
169#define ATH_RC_PROBE_ALLOWED 0x00000001 169#define ATH_RC_PROBE_ALLOWED 0x00000001
170#define ATH_RC_MINRATE_LASTRATE 0x00000002 170#define ATH_RC_MINRATE_LASTRATE 0x00000002
171 171
172struct ath_rc_series {
173 u8 rix;
174 u8 tries;
175 u8 flags;
176 u32 max_4ms_framelen;
177};
178
179/* rcs_flags definition */
180#define ATH_RC_DS_FLAG 0x01
181#define ATH_RC_CW40_FLAG 0x02 /* CW 40 */
182#define ATH_RC_SGI_FLAG 0x04 /* Short Guard Interval */
183#define ATH_RC_HT_FLAG 0x08 /* HT */
184#define ATH_RC_RTSCTS_FLAG 0x10 /* RTS-CTS */
185
186/* 172/*
187 * State structures for new rate adaptation code 173 * State structures for new rate adaptation code
188 */ 174 */
@@ -259,13 +245,10 @@ struct ath_rate_node {
259 struct ath_rate_softc *asc; 245 struct ath_rate_softc *asc;
260}; 246};
261 247
262/* Driver data of ieee80211_tx_info */
263struct ath_tx_info_priv { 248struct ath_tx_info_priv {
264 struct ath_rc_series rcs[4];
265 struct ath_tx_status tx; 249 struct ath_tx_status tx;
266 int n_frames; 250 int n_frames;
267 int n_bad_frames; 251 int n_bad_frames;
268 u8 min_rate;
269}; 252};
270 253
271void ath_rate_attach(struct ath_softc *sc); 254void ath_rate_attach(struct ath_softc *sc);