aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ipw2100.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/ipw2100.c')
-rw-r--r--drivers/net/wireless/ipw2100.c29
1 files changed, 0 insertions, 29 deletions
diff --git a/drivers/net/wireless/ipw2100.c b/drivers/net/wireless/ipw2100.c
index 2fa8eed86dc1..7a7797560a23 100644
--- a/drivers/net/wireless/ipw2100.c
+++ b/drivers/net/wireless/ipw2100.c
@@ -1858,14 +1858,6 @@ static void ipw2100_down(struct ipw2100_priv *priv)
1858 1858
1859 modify_acceptable_latency("ipw2100", INFINITE_LATENCY); 1859 modify_acceptable_latency("ipw2100", INFINITE_LATENCY);
1860 1860
1861#ifdef ACPI_CSTATE_LIMIT_DEFINED
1862 if (priv->config & CFG_C3_DISABLED) {
1863 IPW_DEBUG_INFO(": Resetting C3 transitions.\n");
1864 acpi_set_cstate_limit(priv->cstate_limit);
1865 priv->config &= ~CFG_C3_DISABLED;
1866 }
1867#endif
1868
1869 /* We have to signal any supplicant if we are disassociating */ 1861 /* We have to signal any supplicant if we are disassociating */
1870 if (associated) 1862 if (associated)
1871 wireless_send_event(priv->net_dev, SIOCGIWAP, &wrqu, NULL); 1863 wireless_send_event(priv->net_dev, SIOCGIWAP, &wrqu, NULL);
@@ -2091,14 +2083,6 @@ static void isr_indicate_rf_kill(struct ipw2100_priv *priv, u32 status)
2091 /* RF_KILL is now enabled (else we wouldn't be here) */ 2083 /* RF_KILL is now enabled (else we wouldn't be here) */
2092 priv->status |= STATUS_RF_KILL_HW; 2084 priv->status |= STATUS_RF_KILL_HW;
2093 2085
2094#ifdef ACPI_CSTATE_LIMIT_DEFINED
2095 if (priv->config & CFG_C3_DISABLED) {
2096 IPW_DEBUG_INFO(": Resetting C3 transitions.\n");
2097 acpi_set_cstate_limit(priv->cstate_limit);
2098 priv->config &= ~CFG_C3_DISABLED;
2099 }
2100#endif
2101
2102 /* Make sure the RF Kill check timer is running */ 2086 /* Make sure the RF Kill check timer is running */
2103 priv->stop_rf_kill = 0; 2087 priv->stop_rf_kill = 0;
2104 cancel_delayed_work(&priv->rf_kill); 2088 cancel_delayed_work(&priv->rf_kill);
@@ -2363,23 +2347,10 @@ static void ipw2100_corruption_detected(struct ipw2100_priv *priv, int i)
2363 u32 match, reg; 2347 u32 match, reg;
2364 int j; 2348 int j;
2365#endif 2349#endif
2366#ifdef ACPI_CSTATE_LIMIT_DEFINED
2367 int limit;
2368#endif
2369 2350
2370 IPW_DEBUG_INFO(": PCI latency error detected at 0x%04zX.\n", 2351 IPW_DEBUG_INFO(": PCI latency error detected at 0x%04zX.\n",
2371 i * sizeof(struct ipw2100_status)); 2352 i * sizeof(struct ipw2100_status));
2372 2353
2373#ifdef ACPI_CSTATE_LIMIT_DEFINED
2374 IPW_DEBUG_INFO(": Disabling C3 transitions.\n");
2375 limit = acpi_get_cstate_limit();
2376 if (limit > 2) {
2377 priv->cstate_limit = limit;
2378 acpi_set_cstate_limit(2);
2379 priv->config |= CFG_C3_DISABLED;
2380 }
2381#endif
2382
2383#ifdef IPW2100_DEBUG_C3 2354#ifdef IPW2100_DEBUG_C3
2384 /* Halt the fimrware so we can get a good image */ 2355 /* Halt the fimrware so we can get a good image */
2385 write_register(priv->net_dev, IPW_REG_RESET_REG, 2356 write_register(priv->net_dev, IPW_REG_RESET_REG,