aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-agn.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-agn.c')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-agn.c24
1 files changed, 3 insertions, 21 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn.c b/drivers/net/wireless/iwlwifi/iwl-agn.c
index 43bc8a66864e..13a35dc710a4 100644
--- a/drivers/net/wireless/iwlwifi/iwl-agn.c
+++ b/drivers/net/wireless/iwlwifi/iwl-agn.c
@@ -1838,7 +1838,6 @@ void iwl_post_associate(struct iwl_priv *priv)
1838 if (!priv->vif || !priv->is_open) 1838 if (!priv->vif || !priv->is_open)
1839 return; 1839 return;
1840 1840
1841 iwl_power_cancel_timeout(priv);
1842 iwl_scan_cancel_timeout(priv, 200); 1841 iwl_scan_cancel_timeout(priv, 200);
1843 1842
1844 conf = ieee80211_get_hw_conf(priv->hw); 1843 conf = ieee80211_get_hw_conf(priv->hw);
@@ -1914,7 +1913,7 @@ void iwl_post_associate(struct iwl_priv *priv)
1914 * If chain noise has already been run, then we need to enable 1913 * If chain noise has already been run, then we need to enable
1915 * power management here */ 1914 * power management here */
1916 if (priv->chain_noise_data.state == IWL_CHAIN_NOISE_DONE) 1915 if (priv->chain_noise_data.state == IWL_CHAIN_NOISE_DONE)
1917 iwl_power_enable_management(priv); 1916 iwl_power_update_mode(priv, 0);
1918 1917
1919 /* Enable Rx differential gain and sensitivity calibrations */ 1918 /* Enable Rx differential gain and sensitivity calibrations */
1920 iwl_chain_noise_reset(priv); 1919 iwl_chain_noise_reset(priv);
@@ -2465,26 +2464,11 @@ static ssize_t show_power_level(struct device *d,
2465{ 2464{
2466 struct iwl_priv *priv = dev_get_drvdata(d); 2465 struct iwl_priv *priv = dev_get_drvdata(d);
2467 int mode = priv->power_data.user_power_setting; 2466 int mode = priv->power_data.user_power_setting;
2468 int system = priv->power_data.system_power_setting;
2469 int level = priv->power_data.power_mode; 2467 int level = priv->power_data.power_mode;
2470 char *p = buf; 2468 char *p = buf;
2471 2469
2472 switch (system) { 2470 p += sprintf(p, "INDEX:%d\t", level);
2473 case IWL_POWER_SYS_AUTO: 2471 p += sprintf(p, "USER:%d\n", mode);
2474 p += sprintf(p, "SYSTEM:auto");
2475 break;
2476 case IWL_POWER_SYS_AC:
2477 p += sprintf(p, "SYSTEM:ac");
2478 break;
2479 case IWL_POWER_SYS_BATTERY:
2480 p += sprintf(p, "SYSTEM:battery");
2481 break;
2482 }
2483
2484 p += sprintf(p, "\tMODE:%s", (mode < IWL_POWER_AUTO) ?
2485 "fixed" : "auto");
2486 p += sprintf(p, "\tINDEX:%d", level);
2487 p += sprintf(p, "\n");
2488 return p - buf + 1; 2472 return p - buf + 1;
2489} 2473}
2490 2474
@@ -2553,7 +2537,6 @@ static void iwl_setup_deferred_work(struct iwl_priv *priv)
2553 INIT_DELAYED_WORK(&priv->alive_start, iwl_bg_alive_start); 2537 INIT_DELAYED_WORK(&priv->alive_start, iwl_bg_alive_start);
2554 2538
2555 iwl_setup_scan_deferred_work(priv); 2539 iwl_setup_scan_deferred_work(priv);
2556 iwl_setup_power_deferred_work(priv);
2557 2540
2558 if (priv->cfg->ops->lib->setup_deferred_work) 2541 if (priv->cfg->ops->lib->setup_deferred_work)
2559 priv->cfg->ops->lib->setup_deferred_work(priv); 2542 priv->cfg->ops->lib->setup_deferred_work(priv);
@@ -2573,7 +2556,6 @@ static void iwl_cancel_deferred_work(struct iwl_priv *priv)
2573 2556
2574 cancel_delayed_work_sync(&priv->init_alive_start); 2557 cancel_delayed_work_sync(&priv->init_alive_start);
2575 cancel_delayed_work(&priv->scan_check); 2558 cancel_delayed_work(&priv->scan_check);
2576 cancel_delayed_work_sync(&priv->set_power_save);
2577 cancel_delayed_work(&priv->alive_start); 2559 cancel_delayed_work(&priv->alive_start);
2578 cancel_work_sync(&priv->beacon_update); 2560 cancel_work_sync(&priv->beacon_update);
2579 del_timer_sync(&priv->statistics_periodic); 2561 del_timer_sync(&priv->statistics_periodic);