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/iwl4965-base.c | |
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/iwl4965-base.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl4965-base.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl4965-base.c b/drivers/net/wireless/iwlwifi/iwl4965-base.c index 88229e25837a..a8dfdcbb8b43 100644 --- a/drivers/net/wireless/iwlwifi/iwl4965-base.c +++ b/drivers/net/wireless/iwlwifi/iwl4965-base.c | |||
@@ -3423,6 +3423,29 @@ static void iwl4965_bg_request_scan(struct work_struct *data) | |||
3423 | mutex_unlock(&priv->mutex); | 3423 | mutex_unlock(&priv->mutex); |
3424 | } | 3424 | } |
3425 | 3425 | ||
3426 | static void iwl_bg_run_time_calib_work(struct work_struct *work) | ||
3427 | { | ||
3428 | struct iwl_priv *priv = container_of(work, struct iwl_priv, | ||
3429 | run_time_calib_work); | ||
3430 | |||
3431 | mutex_lock(&priv->mutex); | ||
3432 | |||
3433 | if (test_bit(STATUS_EXIT_PENDING, &priv->status) || | ||
3434 | test_bit(STATUS_SCANNING, &priv->status)) { | ||
3435 | mutex_unlock(&priv->mutex); | ||
3436 | return; | ||
3437 | } | ||
3438 | |||
3439 | if (priv->start_calib) { | ||
3440 | iwl_chain_noise_calibration(priv, &priv->statistics); | ||
3441 | |||
3442 | iwl_sensitivity_calibration(priv, &priv->statistics); | ||
3443 | } | ||
3444 | |||
3445 | mutex_unlock(&priv->mutex); | ||
3446 | return; | ||
3447 | } | ||
3448 | |||
3426 | static void iwl4965_bg_up(struct work_struct *data) | 3449 | static void iwl4965_bg_up(struct work_struct *data) |
3427 | { | 3450 | { |
3428 | struct iwl_priv *priv = container_of(data, struct iwl_priv, up); | 3451 | struct iwl_priv *priv = container_of(data, struct iwl_priv, up); |
@@ -5014,6 +5037,7 @@ static void iwl4965_setup_deferred_work(struct iwl_priv *priv) | |||
5014 | INIT_WORK(&priv->rf_kill, iwl4965_bg_rf_kill); | 5037 | INIT_WORK(&priv->rf_kill, iwl4965_bg_rf_kill); |
5015 | INIT_WORK(&priv->beacon_update, iwl4965_bg_beacon_update); | 5038 | INIT_WORK(&priv->beacon_update, iwl4965_bg_beacon_update); |
5016 | INIT_WORK(&priv->set_monitor, iwl4965_bg_set_monitor); | 5039 | INIT_WORK(&priv->set_monitor, iwl4965_bg_set_monitor); |
5040 | INIT_WORK(&priv->run_time_calib_work, iwl_bg_run_time_calib_work); | ||
5017 | INIT_DELAYED_WORK(&priv->post_associate, iwl4965_bg_post_associate); | 5041 | INIT_DELAYED_WORK(&priv->post_associate, iwl4965_bg_post_associate); |
5018 | INIT_DELAYED_WORK(&priv->init_alive_start, iwl_bg_init_alive_start); | 5042 | INIT_DELAYED_WORK(&priv->init_alive_start, iwl_bg_init_alive_start); |
5019 | INIT_DELAYED_WORK(&priv->alive_start, iwl_bg_alive_start); | 5043 | INIT_DELAYED_WORK(&priv->alive_start, iwl_bg_alive_start); |