diff options
author | Tomas Winkler <tomas.winkler@intel.com> | 2008-06-11 21:47:11 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-06-14 12:18:08 -0400 |
commit | e7d326ac437e9e9425dcd79382f4e5f6ca31fb16 (patch) | |
tree | 82dad05f71fd368c98f30b39eb15921c17487a78 /drivers/net/wireless/iwlwifi/iwl-4965-hw.h | |
parent | 2a421b91d6fe89e27ded7544a25449c0b050098f (diff) |
iwlwifi: move rate helpers to iwlcore
This patch moves rate helpers to iwlcore.
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Zhu Yi <yi.zhu@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-4965-hw.h')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-4965-hw.h | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-4965-hw.h b/drivers/net/wireless/iwlwifi/iwl-4965-hw.h index 721f505ae47b..10f630e1afa6 100644 --- a/drivers/net/wireless/iwlwifi/iwl-4965-hw.h +++ b/drivers/net/wireless/iwlwifi/iwl-4965-hw.h | |||
@@ -793,19 +793,6 @@ enum { | |||
793 | 793 | ||
794 | /********************* END TXPOWER *****************************************/ | 794 | /********************* END TXPOWER *****************************************/ |
795 | 795 | ||
796 | static inline u8 iwl4965_hw_get_rate(__le32 rate_n_flags) | ||
797 | { | ||
798 | return le32_to_cpu(rate_n_flags) & 0xFF; | ||
799 | } | ||
800 | static inline u32 iwl4965_hw_get_rate_n_flags(__le32 rate_n_flags) | ||
801 | { | ||
802 | return le32_to_cpu(rate_n_flags) & 0x1FFFF; | ||
803 | } | ||
804 | static inline __le32 iwl4965_hw_set_rate_n_flags(u8 rate, u16 flags) | ||
805 | { | ||
806 | return cpu_to_le32(flags|(u16)rate); | ||
807 | } | ||
808 | |||
809 | 796 | ||
810 | /** | 797 | /** |
811 | * Tx/Rx Queues | 798 | * Tx/Rx Queues |