aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-3945-rs.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2008-01-27 19:41:47 -0500
committerDavid S. Miller <davem@davemloft.net>2008-01-28 18:04:35 -0500
commitbb8c093bdea62f2ae371b98ebff81b0407852faf (patch)
tree7937a70c333356a85b344f883608eeaf93dd3d2b /drivers/net/wireless/iwlwifi/iwl-3945-rs.h
parent403ab56b1c2786b0e1d58c27f5ce667b529c7faa (diff)
iwlwifi: cleanup namespace
Prefix all symbols with iwl3945_ or iwl4965_ and thus allow building the driver into the kernel. Also remove all the useless default statements in Kconfig while we're at it. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Zhu Yi <yi.zhu@intel.com> Signed-off-by: Reinette Chatre <reinette.chatre@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-3945-rs.h')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-3945-rs.h26
1 files changed, 13 insertions, 13 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-3945-rs.h b/drivers/net/wireless/iwlwifi/iwl-3945-rs.h
index 4f21bc73fc39..075f7de0976e 100644
--- a/drivers/net/wireless/iwlwifi/iwl-3945-rs.h
+++ b/drivers/net/wireless/iwlwifi/iwl-3945-rs.h
@@ -27,7 +27,7 @@
27#ifndef __iwl_3945_rs_h__ 27#ifndef __iwl_3945_rs_h__
28#define __iwl_3945_rs_h__ 28#define __iwl_3945_rs_h__
29 29
30struct iwl_rate_info { 30struct iwl3945_rate_info {
31 u8 plcp; 31 u8 plcp;
32 u8 ieee; 32 u8 ieee;
33 u8 prev_ieee; /* previous rate in IEEE speeds */ 33 u8 prev_ieee; /* previous rate in IEEE speeds */
@@ -159,11 +159,11 @@ enum {
159#define IWL_MIN_RSSI_VAL -100 159#define IWL_MIN_RSSI_VAL -100
160#define IWL_MAX_RSSI_VAL 0 160#define IWL_MAX_RSSI_VAL 0
161 161
162extern const struct iwl_rate_info iwl_rates[IWL_RATE_COUNT]; 162extern const struct iwl3945_rate_info iwl3945_rates[IWL_RATE_COUNT];
163 163
164static inline u8 iwl_get_prev_ieee_rate(u8 rate_index) 164static inline u8 iwl3945_get_prev_ieee_rate(u8 rate_index)
165{ 165{
166 u8 rate = iwl_rates[rate_index].prev_ieee; 166 u8 rate = iwl3945_rates[rate_index].prev_ieee;
167 167
168 if (rate == IWL_RATE_INVALID) 168 if (rate == IWL_RATE_INVALID)
169 rate = rate_index; 169 rate = rate_index;
@@ -171,40 +171,40 @@ static inline u8 iwl_get_prev_ieee_rate(u8 rate_index)
171} 171}
172 172
173/** 173/**
174 * iwl_fill_rs_info - Fill an output text buffer with the rate representation 174 * iwl3945_fill_rs_info - Fill an output text buffer with the rate representation
175 * 175 *
176 * NOTE: This is provided as a quick mechanism for a user to visualize 176 * NOTE: This is provided as a quick mechanism for a user to visualize
177 * the performance of the rate control algorithm and is not meant to be 177 * the performance of the rate control algorithm and is not meant to be
178 * parsed software. 178 * parsed software.
179 */ 179 */
180extern int iwl_fill_rs_info(struct ieee80211_hw *, char *buf, u8 sta_id); 180extern int iwl3945_fill_rs_info(struct ieee80211_hw *, char *buf, u8 sta_id);
181 181
182/** 182/**
183 * iwl_rate_scale_init - Initialize the rate scale table based on assoc info 183 * iwl3945_rate_scale_init - Initialize the rate scale table based on assoc info
184 * 184 *
185 * The specific throughput table used is based on the type of network 185 * The specific throughput table used is based on the type of network
186 * the associated with, including A, B, G, and G w/ TGG protection 186 * the associated with, including A, B, G, and G w/ TGG protection
187 */ 187 */
188extern void iwl_rate_scale_init(struct ieee80211_hw *hw, s32 sta_id); 188extern void iwl3945_rate_scale_init(struct ieee80211_hw *hw, s32 sta_id);
189 189
190/** 190/**
191 * iwl_rate_control_register - Register the rate control algorithm callbacks 191 * iwl3945_rate_control_register - Register the rate control algorithm callbacks
192 * 192 *
193 * Since the rate control algorithm is hardware specific, there is no need 193 * Since the rate control algorithm is hardware specific, there is no need
194 * or reason to place it as a stand alone module. The driver can call 194 * or reason to place it as a stand alone module. The driver can call
195 * iwl_rate_control_register in order to register the rate control callbacks 195 * iwl3945_rate_control_register in order to register the rate control callbacks
196 * with the mac80211 subsystem. This should be performed prior to calling 196 * with the mac80211 subsystem. This should be performed prior to calling
197 * ieee80211_register_hw 197 * ieee80211_register_hw
198 * 198 *
199 */ 199 */
200extern void iwl_rate_control_register(struct ieee80211_hw *hw); 200extern void iwl3945_rate_control_register(struct ieee80211_hw *hw);
201 201
202/** 202/**
203 * iwl_rate_control_unregister - Unregister the rate control callbacks 203 * iwl3945_rate_control_unregister - Unregister the rate control callbacks
204 * 204 *
205 * This should be called after calling ieee80211_unregister_hw, but before 205 * This should be called after calling ieee80211_unregister_hw, but before
206 * the driver is unloaded. 206 * the driver is unloaded.
207 */ 207 */
208extern void iwl_rate_control_unregister(struct ieee80211_hw *hw); 208extern void iwl3945_rate_control_unregister(struct ieee80211_hw *hw);
209 209
210#endif 210#endif