diff options
author | Sujith <Sujith.Manoharan@atheros.com> | 2008-11-17 22:37:53 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-11-26 09:47:30 -0500 |
commit | e63835b0f4d8545942fd41b3ca32bbf71bd73e4b (patch) | |
tree | 38eab8819cf8d3cc7aa98ee2cfb4e7df7e8eca3b /drivers/net/wireless/ath9k/ath9k.h | |
parent | a8efee4f4740c61fccaf73608df282c4ee24ae86 (diff) |
ath9k: Remove ath9k_rate_table
Maintaining two sets of rate tables is redundant, remove one
and use struct ath_rate_table exclusively.
Signed-off-by: Sujith <Sujith.Manoharan@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath9k/ath9k.h')
-rw-r--r-- | drivers/net/wireless/ath9k/ath9k.h | 26 |
1 files changed, 3 insertions, 23 deletions
diff --git a/drivers/net/wireless/ath9k/ath9k.h b/drivers/net/wireless/ath9k/ath9k.h index 6be2b947307c..c4012c88d82b 100644 --- a/drivers/net/wireless/ath9k/ath9k.h +++ b/drivers/net/wireless/ath9k/ath9k.h | |||
@@ -401,22 +401,6 @@ enum ath9k_int { | |||
401 | ATH9K_INT_NOCARD = 0xffffffff | 401 | ATH9K_INT_NOCARD = 0xffffffff |
402 | }; | 402 | }; |
403 | 403 | ||
404 | struct ath9k_rate_table { | ||
405 | int rateCount; | ||
406 | u8 rateCodeToIndex[256]; | ||
407 | struct { | ||
408 | u8 valid; | ||
409 | u8 phy; | ||
410 | u32 rateKbps; | ||
411 | u8 rateCode; | ||
412 | u8 shortPreamble; | ||
413 | u8 dot11Rate; | ||
414 | u8 controlRate; | ||
415 | u16 lpAckDuration; | ||
416 | u16 spAckDuration; | ||
417 | } info[32]; | ||
418 | }; | ||
419 | |||
420 | #define ATH9K_RATESERIES_RTS_CTS 0x0001 | 404 | #define ATH9K_RATESERIES_RTS_CTS 0x0001 |
421 | #define ATH9K_RATESERIES_2040 0x0002 | 405 | #define ATH9K_RATESERIES_2040 0x0002 |
422 | #define ATH9K_RATESERIES_HALFGI 0x0004 | 406 | #define ATH9K_RATESERIES_HALFGI 0x0004 |
@@ -828,6 +812,8 @@ struct chan_centers { | |||
828 | u16 ext_center; | 812 | u16 ext_center; |
829 | }; | 813 | }; |
830 | 814 | ||
815 | struct ath_rate_table; | ||
816 | |||
831 | /* Helpers */ | 817 | /* Helpers */ |
832 | 818 | ||
833 | enum wireless_mode ath9k_hw_chan2wmode(struct ath_hal *ah, | 819 | enum wireless_mode ath9k_hw_chan2wmode(struct ath_hal *ah, |
@@ -838,7 +824,7 @@ bool ath9k_get_channel_edges(struct ath_hal *ah, | |||
838 | u16 flags, u16 *low, | 824 | u16 flags, u16 *low, |
839 | u16 *high); | 825 | u16 *high); |
840 | u16 ath9k_hw_computetxtime(struct ath_hal *ah, | 826 | u16 ath9k_hw_computetxtime(struct ath_hal *ah, |
841 | const struct ath9k_rate_table *rates, | 827 | struct ath_rate_table *rates, |
842 | u32 frameLen, u16 rateix, | 828 | u32 frameLen, u16 rateix, |
843 | bool shortPreamble); | 829 | bool shortPreamble); |
844 | u32 ath9k_hw_mhz2ieee(struct ath_hal *ah, u32 freq, u32 flags); | 830 | u32 ath9k_hw_mhz2ieee(struct ath_hal *ah, u32 freq, u32 flags); |
@@ -883,12 +869,6 @@ void ath9k_hw_configpcipowersave(struct ath_hal *ah, int restore); | |||
883 | void ath9k_hw_beaconinit(struct ath_hal *ah, u32 next_beacon, u32 beacon_period); | 869 | void ath9k_hw_beaconinit(struct ath_hal *ah, u32 next_beacon, u32 beacon_period); |
884 | void ath9k_hw_set_sta_beacon_timers(struct ath_hal *ah, | 870 | void ath9k_hw_set_sta_beacon_timers(struct ath_hal *ah, |
885 | const struct ath9k_beacon_state *bs); | 871 | const struct ath9k_beacon_state *bs); |
886 | |||
887 | /* Rate table */ | ||
888 | |||
889 | const struct ath9k_rate_table *ath9k_hw_getratetable(struct ath_hal *ah, | ||
890 | u32 mode); | ||
891 | |||
892 | /* HW Capabilities */ | 872 | /* HW Capabilities */ |
893 | 873 | ||
894 | bool ath9k_hw_fill_cap_info(struct ath_hal *ah); | 874 | bool ath9k_hw_fill_cap_info(struct ath_hal *ah); |