diff options
author | Johannes Berg <johannes.berg@intel.com> | 2010-09-22 12:02:04 -0400 |
---|---|---|
committer | Wey-Yi Guy <wey-yi.w.guy@intel.com> | 2010-10-07 18:51:20 -0400 |
commit | 635b85b42796a6ab4e6a31cde78f1d9660c9c4a0 (patch) | |
tree | 24bc9771d3342a6c01cc6423ea836ca1e05aa8e6 /drivers/net/wireless/iwlwifi/iwl-3945.c | |
parent | 57934dc1fb7ef65a8a0f5d7a1578536b36043c0a (diff) |
iwlwifi: remove agn rates info there
Code and data related to agn bitrates can be
part of the agn module rather than being in
the core module.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-3945.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-3945.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-3945.c b/drivers/net/wireless/iwlwifi/iwl-3945.c index 4b3eb785dcb2..ba3ab04c1fba 100644 --- a/drivers/net/wireless/iwlwifi/iwl-3945.c +++ b/drivers/net/wireless/iwlwifi/iwl-3945.c | |||
@@ -87,6 +87,15 @@ const struct iwl3945_rate_info iwl3945_rates[IWL_RATE_COUNT_3945] = { | |||
87 | IWL_DECLARE_RATE_INFO(54, 48, INV, 48, INV, 48, INV),/* 54mbps */ | 87 | IWL_DECLARE_RATE_INFO(54, 48, INV, 48, INV, 48, INV),/* 54mbps */ |
88 | }; | 88 | }; |
89 | 89 | ||
90 | static inline u8 iwl3945_get_prev_ieee_rate(u8 rate_index) | ||
91 | { | ||
92 | u8 rate = iwl3945_rates[rate_index].prev_ieee; | ||
93 | |||
94 | if (rate == IWL_RATE_INVALID) | ||
95 | rate = rate_index; | ||
96 | return rate; | ||
97 | } | ||
98 | |||
90 | /* 1 = enable the iwl3945_disable_events() function */ | 99 | /* 1 = enable the iwl3945_disable_events() function */ |
91 | #define IWL_EVT_DISABLE (0) | 100 | #define IWL_EVT_DISABLE (0) |
92 | #define IWL_EVT_DISABLE_SIZE (1532/32) | 101 | #define IWL_EVT_DISABLE_SIZE (1532/32) |