diff options
author | Tomas Winkler <tomas.winkler@intel.com> | 2008-05-29 04:34:54 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-06-03 15:00:20 -0400 |
commit | 4a4a9e81aed702421ef3e782f82d4e929fb81796 (patch) | |
tree | 784b3573555d3d7be9f0a744d9da912adcd1774d /drivers/net/wireless/iwlwifi/iwl4965-base.c | |
parent | 84df9d3130118146c9aedf5146040f9f6495f471 (diff) |
iwlwifi: clean up alive_start routine
This patch cleans up alive_start routine. It removes 4965 from the common
code and moves the run time calibration reset into a common code.
Signed-off-by: Tomas Winkler <tomas.winkler@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 | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl4965-base.c b/drivers/net/wireless/iwlwifi/iwl4965-base.c index 6785200cf236..5a5306de2956 100644 --- a/drivers/net/wireless/iwlwifi/iwl4965-base.c +++ b/drivers/net/wireless/iwlwifi/iwl4965-base.c | |||
@@ -3244,11 +3244,11 @@ static int iwl4965_read_ucode(struct iwl_priv *priv) | |||
3244 | } | 3244 | } |
3245 | 3245 | ||
3246 | /** | 3246 | /** |
3247 | * iwl4965_alive_start - called after REPLY_ALIVE notification received | 3247 | * iwl_alive_start - called after REPLY_ALIVE notification received |
3248 | * from protocol/runtime uCode (initialization uCode's | 3248 | * from protocol/runtime uCode (initialization uCode's |
3249 | * Alive gets handled by iwl4965_init_alive_start()). | 3249 | * Alive gets handled by iwl_init_alive_start()). |
3250 | */ | 3250 | */ |
3251 | static void iwl4965_alive_start(struct iwl_priv *priv) | 3251 | static void iwl_alive_start(struct iwl_priv *priv) |
3252 | { | 3252 | { |
3253 | int ret = 0; | 3253 | int ret = 0; |
3254 | 3254 | ||
@@ -3272,7 +3272,6 @@ static void iwl4965_alive_start(struct iwl_priv *priv) | |||
3272 | } | 3272 | } |
3273 | 3273 | ||
3274 | iwlcore_clear_stations_table(priv); | 3274 | iwlcore_clear_stations_table(priv); |
3275 | |||
3276 | ret = priv->cfg->ops->lib->alive_notify(priv); | 3275 | ret = priv->cfg->ops->lib->alive_notify(priv); |
3277 | if (ret) { | 3276 | if (ret) { |
3278 | IWL_WARNING("Could not complete ALIVE transition [ntf]: %d\n", | 3277 | IWL_WARNING("Could not complete ALIVE transition [ntf]: %d\n", |
@@ -3310,6 +3309,8 @@ static void iwl4965_alive_start(struct iwl_priv *priv) | |||
3310 | /* Configure Bluetooth device coexistence support */ | 3309 | /* Configure Bluetooth device coexistence support */ |
3311 | iwl4965_send_bt_config(priv); | 3310 | iwl4965_send_bt_config(priv); |
3312 | 3311 | ||
3312 | iwl_reset_run_time_calib(priv); | ||
3313 | |||
3313 | /* Configure the adapter for unassociated operation */ | 3314 | /* Configure the adapter for unassociated operation */ |
3314 | iwl4965_commit_rxon(priv); | 3315 | iwl4965_commit_rxon(priv); |
3315 | 3316 | ||
@@ -3554,7 +3555,7 @@ static int __iwl4965_up(struct iwl_priv *priv) | |||
3554 | * | 3555 | * |
3555 | *****************************************************************************/ | 3556 | *****************************************************************************/ |
3556 | 3557 | ||
3557 | static void iwl4965_bg_init_alive_start(struct work_struct *data) | 3558 | static void iwl_bg_init_alive_start(struct work_struct *data) |
3558 | { | 3559 | { |
3559 | struct iwl_priv *priv = | 3560 | struct iwl_priv *priv = |
3560 | container_of(data, struct iwl_priv, init_alive_start.work); | 3561 | container_of(data, struct iwl_priv, init_alive_start.work); |
@@ -3567,7 +3568,7 @@ static void iwl4965_bg_init_alive_start(struct work_struct *data) | |||
3567 | mutex_unlock(&priv->mutex); | 3568 | mutex_unlock(&priv->mutex); |
3568 | } | 3569 | } |
3569 | 3570 | ||
3570 | static void iwl4965_bg_alive_start(struct work_struct *data) | 3571 | static void iwl_bg_alive_start(struct work_struct *data) |
3571 | { | 3572 | { |
3572 | struct iwl_priv *priv = | 3573 | struct iwl_priv *priv = |
3573 | container_of(data, struct iwl_priv, alive_start.work); | 3574 | container_of(data, struct iwl_priv, alive_start.work); |
@@ -3576,7 +3577,7 @@ static void iwl4965_bg_alive_start(struct work_struct *data) | |||
3576 | return; | 3577 | return; |
3577 | 3578 | ||
3578 | mutex_lock(&priv->mutex); | 3579 | mutex_lock(&priv->mutex); |
3579 | iwl4965_alive_start(priv); | 3580 | iwl_alive_start(priv); |
3580 | mutex_unlock(&priv->mutex); | 3581 | mutex_unlock(&priv->mutex); |
3581 | } | 3582 | } |
3582 | 3583 | ||
@@ -5466,8 +5467,8 @@ static void iwl4965_setup_deferred_work(struct iwl_priv *priv) | |||
5466 | INIT_WORK(&priv->beacon_update, iwl4965_bg_beacon_update); | 5467 | INIT_WORK(&priv->beacon_update, iwl4965_bg_beacon_update); |
5467 | INIT_WORK(&priv->set_monitor, iwl4965_bg_set_monitor); | 5468 | INIT_WORK(&priv->set_monitor, iwl4965_bg_set_monitor); |
5468 | INIT_DELAYED_WORK(&priv->post_associate, iwl4965_bg_post_associate); | 5469 | INIT_DELAYED_WORK(&priv->post_associate, iwl4965_bg_post_associate); |
5469 | INIT_DELAYED_WORK(&priv->init_alive_start, iwl4965_bg_init_alive_start); | 5470 | INIT_DELAYED_WORK(&priv->init_alive_start, iwl_bg_init_alive_start); |
5470 | INIT_DELAYED_WORK(&priv->alive_start, iwl4965_bg_alive_start); | 5471 | INIT_DELAYED_WORK(&priv->alive_start, iwl_bg_alive_start); |
5471 | INIT_DELAYED_WORK(&priv->scan_check, iwl4965_bg_scan_check); | 5472 | INIT_DELAYED_WORK(&priv->scan_check, iwl4965_bg_scan_check); |
5472 | 5473 | ||
5473 | iwl4965_hw_setup_deferred_work(priv); | 5474 | iwl4965_hw_setup_deferred_work(priv); |