diff options
author | Emmanuel Grumbach <emmanuel.grumbach@intel.com> | 2008-06-11 21:46:54 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-06-14 12:18:05 -0400 |
commit | 203566f359b5702be72238a8b1d37655c986cc7c (patch) | |
tree | 8686ac5b77f31b4765e60210b731f1b52c888c33 /drivers/net/wireless/iwlwifi/iwl-5000.c | |
parent | 4e39317df0f9e48919130574238319f9a445e6e3 (diff) |
iwlwifi: add possibility to disable tx_power calibration
This patch adds the possibility to disable the tx_power calibration.
In 5000 HW, this calibration is implemented in uCode, hence, it is
disabled in driver by default.
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-5000.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-5000.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-5000.c b/drivers/net/wireless/iwlwifi/iwl-5000.c index fc8ad7326edd..31ea363c62c7 100644 --- a/drivers/net/wireless/iwlwifi/iwl-5000.c +++ b/drivers/net/wireless/iwlwifi/iwl-5000.c | |||
@@ -1229,6 +1229,12 @@ static u16 iwl5000_get_hcmd_size(u8 cmd_id, u16 len) | |||
1229 | return len; | 1229 | return len; |
1230 | } | 1230 | } |
1231 | 1231 | ||
1232 | static void iwl5000_setup_deferred_work(struct iwl_priv *priv) | ||
1233 | { | ||
1234 | /* in 5000 the tx power calibration is done in uCode */ | ||
1235 | priv->disable_tx_power_cal = 1; | ||
1236 | } | ||
1237 | |||
1232 | static void iwl5000_rx_handler_setup(struct iwl_priv *priv) | 1238 | static void iwl5000_rx_handler_setup(struct iwl_priv *priv) |
1233 | { | 1239 | { |
1234 | /* init calibration handlers */ | 1240 | /* init calibration handlers */ |
@@ -1313,6 +1319,7 @@ static struct iwl_lib_ops iwl5000_lib = { | |||
1313 | .txq_inval_byte_cnt_tbl = iwl5000_txq_inval_byte_cnt_tbl, | 1319 | .txq_inval_byte_cnt_tbl = iwl5000_txq_inval_byte_cnt_tbl, |
1314 | .txq_set_sched = iwl5000_txq_set_sched, | 1320 | .txq_set_sched = iwl5000_txq_set_sched, |
1315 | .rx_handler_setup = iwl5000_rx_handler_setup, | 1321 | .rx_handler_setup = iwl5000_rx_handler_setup, |
1322 | .setup_deferred_work = iwl5000_setup_deferred_work, | ||
1316 | .is_valid_rtc_data_addr = iwl5000_hw_valid_rtc_data_addr, | 1323 | .is_valid_rtc_data_addr = iwl5000_hw_valid_rtc_data_addr, |
1317 | .load_ucode = iwl5000_load_ucode, | 1324 | .load_ucode = iwl5000_load_ucode, |
1318 | .init_alive_start = iwl5000_init_alive_start, | 1325 | .init_alive_start = iwl5000_init_alive_start, |