diff options
author | Emmanuel Grumbach <emmanuel.grumbach@intel.com> | 2008-06-11 21:46:52 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-06-14 12:18:04 -0400 |
commit | 16e727e866d739d7f02790c794410f6d9f1d720b (patch) | |
tree | 88a6bbf3e8e3135bfc6b3f4a58c6421c2a81643c /drivers/net/wireless/iwlwifi/iwl-dev.h | |
parent | a78a83255651acff8234975b5c7b6cd19d717f3f (diff) |
iwlwifi: removes the RUN_TIME_CALIB ifdef
This patch removes the possibility not to compile the run time
calibrations. It also renames priv->sensitivity_work to
priv->run_time_calib_work, and moves bg_run_time_calib to iwl4965_base
since it is common to both: 4965 and 5000.
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
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-dev.h')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-dev.h | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-dev.h b/drivers/net/wireless/iwlwifi/iwl-dev.h index 59a6960f41b3..631931c155a1 100644 --- a/drivers/net/wireless/iwlwifi/iwl-dev.h +++ b/drivers/net/wireless/iwlwifi/iwl-dev.h | |||
@@ -602,9 +602,7 @@ struct iwl_hw_params { | |||
602 | u32 max_data_size; | 602 | u32 max_data_size; |
603 | u32 max_bsm_size; | 603 | u32 max_bsm_size; |
604 | u32 ct_kill_threshold; /* value in hw-dependent units */ | 604 | u32 ct_kill_threshold; /* value in hw-dependent units */ |
605 | #ifdef CONFIG_IWLWIFI_RUN_TIME_CALIB | ||
606 | const struct iwl_sensitivity_ranges *sens; | 605 | const struct iwl_sensitivity_ranges *sens; |
607 | #endif | ||
608 | }; | 606 | }; |
609 | 607 | ||
610 | #define HT_SHORT_GI_20MHZ (1 << 0) | 608 | #define HT_SHORT_GI_20MHZ (1 << 0) |
@@ -882,7 +880,6 @@ enum ucode_type { | |||
882 | UCODE_RT | 880 | UCODE_RT |
883 | }; | 881 | }; |
884 | 882 | ||
885 | #ifdef CONFIG_IWLWIFI_RUN_TIME_CALIB | ||
886 | /* Sensitivity calib data */ | 883 | /* Sensitivity calib data */ |
887 | struct iwl_sensitivity_data { | 884 | struct iwl_sensitivity_data { |
888 | u32 auto_corr_ofdm; | 885 | u32 auto_corr_ofdm; |
@@ -924,7 +921,6 @@ struct iwl_chain_noise_data { | |||
924 | u8 delta_gain_code[NUM_RX_CHAINS]; | 921 | u8 delta_gain_code[NUM_RX_CHAINS]; |
925 | u8 radio_write; | 922 | u8 radio_write; |
926 | }; | 923 | }; |
927 | #endif /* CONFIG_IWLWIFI_RUN_TIME_CALIB */ | ||
928 | 924 | ||
929 | #define EEPROM_SEM_TIMEOUT 10 /* milliseconds */ | 925 | #define EEPROM_SEM_TIMEOUT 10 /* milliseconds */ |
930 | #define EEPROM_SEM_RETRY_LIMIT 1000 /* number of attempts (not time) */ | 926 | #define EEPROM_SEM_RETRY_LIMIT 1000 /* number of attempts (not time) */ |
@@ -1057,11 +1053,9 @@ struct iwl_priv { | |||
1057 | u8 assoc_station_added; | 1053 | u8 assoc_station_added; |
1058 | u8 use_ant_b_for_management_frame; /* Tx antenna selection */ | 1054 | u8 use_ant_b_for_management_frame; /* Tx antenna selection */ |
1059 | u8 start_calib; | 1055 | u8 start_calib; |
1060 | #ifdef CONFIG_IWLWIFI_RUN_TIME_CALIB | ||
1061 | struct iwl_sensitivity_data sensitivity_data; | 1056 | struct iwl_sensitivity_data sensitivity_data; |
1062 | struct iwl_chain_noise_data chain_noise_data; | 1057 | struct iwl_chain_noise_data chain_noise_data; |
1063 | __le16 sensitivity_tbl[HD_TABLE_SIZE]; | 1058 | __le16 sensitivity_tbl[HD_TABLE_SIZE]; |
1064 | #endif /*CONFIG_IWLWIFI_RUN_TIME_CALIB*/ | ||
1065 | 1059 | ||
1066 | struct iwl_ht_info current_ht_config; | 1060 | struct iwl_ht_info current_ht_config; |
1067 | u8 last_phy_res[100]; | 1061 | u8 last_phy_res[100]; |
@@ -1211,13 +1205,9 @@ struct iwl_priv { | |||
1211 | #endif /* CONFIG_IWLWIFI_DEBUG */ | 1205 | #endif /* CONFIG_IWLWIFI_DEBUG */ |
1212 | 1206 | ||
1213 | struct work_struct txpower_work; | 1207 | struct work_struct txpower_work; |
1214 | #ifdef CONFIG_IWLWIFI_RUN_TIME_CALIB | ||
1215 | u32 disable_sens_cal; | 1208 | u32 disable_sens_cal; |
1216 | u32 disable_chain_noise_cal; | 1209 | u32 disable_chain_noise_cal; |
1217 | #endif /* CONFIG_IWLWIFI_RUN_TIME_CALIB */ | 1210 | struct work_struct run_time_calib_work; |
1218 | #ifdef CONFIG_IWL4965_RUN_TIME_CALIB | ||
1219 | struct work_struct sensitivity_work; | ||
1220 | #endif /* CONFIG_IWL4965_RUN_TIME_CALIB */ | ||
1221 | struct timer_list statistics_periodic; | 1211 | struct timer_list statistics_periodic; |
1222 | }; /*iwl_priv */ | 1212 | }; /*iwl_priv */ |
1223 | 1213 | ||