diff options
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-5000.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-5000.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-5000.c b/drivers/net/wireless/iwlwifi/iwl-5000.c index 65484779bd3d..fc8ad7326edd 100644 --- a/drivers/net/wireless/iwlwifi/iwl-5000.c +++ b/drivers/net/wireless/iwlwifi/iwl-5000.c | |||
@@ -300,8 +300,6 @@ err: | |||
300 | 300 | ||
301 | } | 301 | } |
302 | 302 | ||
303 | #ifdef CONFIG_IWL5000_RUN_TIME_CALIB | ||
304 | |||
305 | static void iwl5000_gain_computation(struct iwl_priv *priv, | 303 | static void iwl5000_gain_computation(struct iwl_priv *priv, |
306 | u32 average_noise[NUM_RX_CHAINS], | 304 | u32 average_noise[NUM_RX_CHAINS], |
307 | u16 min_average_noise_antenna_i, | 305 | u16 min_average_noise_antenna_i, |
@@ -354,7 +352,6 @@ static void iwl5000_gain_computation(struct iwl_priv *priv, | |||
354 | data->beacon_count = 0; | 352 | data->beacon_count = 0; |
355 | } | 353 | } |
356 | 354 | ||
357 | |||
358 | static void iwl5000_chain_noise_reset(struct iwl_priv *priv) | 355 | static void iwl5000_chain_noise_reset(struct iwl_priv *priv) |
359 | { | 356 | { |
360 | struct iwl_chain_noise_data *data = &priv->chain_noise_data; | 357 | struct iwl_chain_noise_data *data = &priv->chain_noise_data; |
@@ -393,10 +390,6 @@ static struct iwl_sensitivity_ranges iwl5000_sensitivity = { | |||
393 | .nrg_th_ofdm = 95, | 390 | .nrg_th_ofdm = 95, |
394 | }; | 391 | }; |
395 | 392 | ||
396 | #endif /* CONFIG_IWL5000_RUN_TIME_CALIB */ | ||
397 | |||
398 | |||
399 | |||
400 | static const u8 *iwl5000_eeprom_query_addr(const struct iwl_priv *priv, | 393 | static const u8 *iwl5000_eeprom_query_addr(const struct iwl_priv *priv, |
401 | size_t offset) | 394 | size_t offset) |
402 | { | 395 | { |
@@ -847,9 +840,7 @@ static int iwl5000_hw_set_hw_params(struct iwl_priv *priv) | |||
847 | priv->hw_params.max_bsm_size = BSM_SRAM_SIZE; | 840 | priv->hw_params.max_bsm_size = BSM_SRAM_SIZE; |
848 | priv->hw_params.fat_channel = BIT(IEEE80211_BAND_2GHZ) | | 841 | priv->hw_params.fat_channel = BIT(IEEE80211_BAND_2GHZ) | |
849 | BIT(IEEE80211_BAND_5GHZ); | 842 | BIT(IEEE80211_BAND_5GHZ); |
850 | #ifdef CONFIG_IWL5000_RUN_TIME_CALIB | ||
851 | priv->hw_params.sens = &iwl5000_sensitivity; | 843 | priv->hw_params.sens = &iwl5000_sensitivity; |
852 | #endif | ||
853 | 844 | ||
854 | switch (priv->hw_rev & CSR_HW_REV_TYPE_MSK) { | 845 | switch (priv->hw_rev & CSR_HW_REV_TYPE_MSK) { |
855 | case CSR_HW_REV_TYPE_5100: | 846 | case CSR_HW_REV_TYPE_5100: |
@@ -1309,10 +1300,8 @@ static struct iwl_hcmd_ops iwl5000_hcmd = { | |||
1309 | static struct iwl_hcmd_utils_ops iwl5000_hcmd_utils = { | 1300 | static struct iwl_hcmd_utils_ops iwl5000_hcmd_utils = { |
1310 | .get_hcmd_size = iwl5000_get_hcmd_size, | 1301 | .get_hcmd_size = iwl5000_get_hcmd_size, |
1311 | .build_addsta_hcmd = iwl5000_build_addsta_hcmd, | 1302 | .build_addsta_hcmd = iwl5000_build_addsta_hcmd, |
1312 | #ifdef CONFIG_IWL5000_RUN_TIME_CALIB | ||
1313 | .gain_computation = iwl5000_gain_computation, | 1303 | .gain_computation = iwl5000_gain_computation, |
1314 | .chain_noise_reset = iwl5000_chain_noise_reset, | 1304 | .chain_noise_reset = iwl5000_chain_noise_reset, |
1315 | #endif | ||
1316 | }; | 1305 | }; |
1317 | 1306 | ||
1318 | static struct iwl_lib_ops iwl5000_lib = { | 1307 | static struct iwl_lib_ops iwl5000_lib = { |