diff options
Diffstat (limited to 'drivers/net/wireless/ipw2200.c')
-rw-r--r-- | drivers/net/wireless/ipw2200.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/drivers/net/wireless/ipw2200.c b/drivers/net/wireless/ipw2200.c index 758459e72f3d..89e076fa1039 100644 --- a/drivers/net/wireless/ipw2200.c +++ b/drivers/net/wireless/ipw2200.c | |||
@@ -567,7 +567,6 @@ static inline void ipw_disable_interrupts(struct ipw_priv *priv) | |||
567 | spin_unlock_irqrestore(&priv->irq_lock, flags); | 567 | spin_unlock_irqrestore(&priv->irq_lock, flags); |
568 | } | 568 | } |
569 | 569 | ||
570 | #ifdef CONFIG_IPW2200_DEBUG | ||
571 | static char *ipw_error_desc(u32 val) | 570 | static char *ipw_error_desc(u32 val) |
572 | { | 571 | { |
573 | switch (val) { | 572 | switch (val) { |
@@ -634,7 +633,6 @@ static void ipw_dump_error_log(struct ipw_priv *priv, | |||
634 | error->log[i].time, | 633 | error->log[i].time, |
635 | error->log[i].data, error->log[i].event); | 634 | error->log[i].data, error->log[i].event); |
636 | } | 635 | } |
637 | #endif | ||
638 | 636 | ||
639 | static inline int ipw_is_init(struct ipw_priv *priv) | 637 | static inline int ipw_is_init(struct ipw_priv *priv) |
640 | { | 638 | { |
@@ -1435,9 +1433,7 @@ static ssize_t store_scan_age(struct device *d, struct device_attribute *attr, | |||
1435 | const char *buf, size_t count) | 1433 | const char *buf, size_t count) |
1436 | { | 1434 | { |
1437 | struct ipw_priv *priv = dev_get_drvdata(d); | 1435 | struct ipw_priv *priv = dev_get_drvdata(d); |
1438 | #ifdef CONFIG_IPW2200_DEBUG | ||
1439 | struct net_device *dev = priv->net_dev; | 1436 | struct net_device *dev = priv->net_dev; |
1440 | #endif | ||
1441 | char buffer[] = "00000000"; | 1437 | char buffer[] = "00000000"; |
1442 | unsigned long len = | 1438 | unsigned long len = |
1443 | (sizeof(buffer) - 1) > count ? count : sizeof(buffer) - 1; | 1439 | (sizeof(buffer) - 1) > count ? count : sizeof(buffer) - 1; |
@@ -1958,14 +1954,12 @@ static void ipw_irq_tasklet(struct ipw_priv *priv) | |||
1958 | IPW_WARNING("Firmware error detected. Restarting.\n"); | 1954 | IPW_WARNING("Firmware error detected. Restarting.\n"); |
1959 | if (priv->error) { | 1955 | if (priv->error) { |
1960 | IPW_DEBUG_FW("Sysfs 'error' log already exists.\n"); | 1956 | IPW_DEBUG_FW("Sysfs 'error' log already exists.\n"); |
1961 | #ifdef CONFIG_IPW2200_DEBUG | ||
1962 | if (ipw_debug_level & IPW_DL_FW_ERRORS) { | 1957 | if (ipw_debug_level & IPW_DL_FW_ERRORS) { |
1963 | struct ipw_fw_error *error = | 1958 | struct ipw_fw_error *error = |
1964 | ipw_alloc_error_log(priv); | 1959 | ipw_alloc_error_log(priv); |
1965 | ipw_dump_error_log(priv, error); | 1960 | ipw_dump_error_log(priv, error); |
1966 | kfree(error); | 1961 | kfree(error); |
1967 | } | 1962 | } |
1968 | #endif | ||
1969 | } else { | 1963 | } else { |
1970 | priv->error = ipw_alloc_error_log(priv); | 1964 | priv->error = ipw_alloc_error_log(priv); |
1971 | if (priv->error) | 1965 | if (priv->error) |
@@ -1973,10 +1967,8 @@ static void ipw_irq_tasklet(struct ipw_priv *priv) | |||
1973 | else | 1967 | else |
1974 | IPW_DEBUG_FW("Error allocating sysfs 'error' " | 1968 | IPW_DEBUG_FW("Error allocating sysfs 'error' " |
1975 | "log.\n"); | 1969 | "log.\n"); |
1976 | #ifdef CONFIG_IPW2200_DEBUG | ||
1977 | if (ipw_debug_level & IPW_DL_FW_ERRORS) | 1970 | if (ipw_debug_level & IPW_DL_FW_ERRORS) |
1978 | ipw_dump_error_log(priv, priv->error); | 1971 | ipw_dump_error_log(priv, priv->error); |
1979 | #endif | ||
1980 | } | 1972 | } |
1981 | 1973 | ||
1982 | /* XXX: If hardware encryption is for WPA/WPA2, | 1974 | /* XXX: If hardware encryption is for WPA/WPA2, |
@@ -3915,7 +3907,6 @@ static const struct ipw_status_code ipw_status_codes[] = { | |||
3915 | {0x2E, "Cipher suite is rejected per security policy"}, | 3907 | {0x2E, "Cipher suite is rejected per security policy"}, |
3916 | }; | 3908 | }; |
3917 | 3909 | ||
3918 | #ifdef CONFIG_IPW2200_DEBUG | ||
3919 | static const char *ipw_get_status_code(u16 status) | 3910 | static const char *ipw_get_status_code(u16 status) |
3920 | { | 3911 | { |
3921 | int i; | 3912 | int i; |
@@ -3924,7 +3915,6 @@ static const char *ipw_get_status_code(u16 status) | |||
3924 | return ipw_status_codes[i].reason; | 3915 | return ipw_status_codes[i].reason; |
3925 | return "Unknown status value."; | 3916 | return "Unknown status value."; |
3926 | } | 3917 | } |
3927 | #endif | ||
3928 | 3918 | ||
3929 | static void inline average_init(struct average *avg) | 3919 | static void inline average_init(struct average *avg) |
3930 | { | 3920 | { |
@@ -4394,7 +4384,6 @@ static void ipw_rx_notification(struct ipw_priv *priv, | |||
4394 | if (priv-> | 4384 | if (priv-> |
4395 | status & (STATUS_ASSOCIATED | | 4385 | status & (STATUS_ASSOCIATED | |
4396 | STATUS_AUTH)) { | 4386 | STATUS_AUTH)) { |
4397 | #ifdef CONFIG_IPW2200_DEBUG | ||
4398 | struct notif_authenticate *auth | 4387 | struct notif_authenticate *auth |
4399 | = ¬if->u.auth; | 4388 | = ¬if->u.auth; |
4400 | IPW_DEBUG(IPW_DL_NOTIF | | 4389 | IPW_DEBUG(IPW_DL_NOTIF | |
@@ -4412,7 +4401,6 @@ static void ipw_rx_notification(struct ipw_priv *priv, | |||
4412 | ipw_get_status_code | 4401 | ipw_get_status_code |
4413 | (ntohs | 4402 | (ntohs |
4414 | (auth->status))); | 4403 | (auth->status))); |
4415 | #endif | ||
4416 | 4404 | ||
4417 | priv->status &= | 4405 | priv->status &= |
4418 | ~(STATUS_ASSOCIATING | | 4406 | ~(STATUS_ASSOCIATING | |
@@ -5969,7 +5957,6 @@ static void ipw_bg_adhoc_check(void *data) | |||
5969 | mutex_unlock(&priv->mutex); | 5957 | mutex_unlock(&priv->mutex); |
5970 | } | 5958 | } |
5971 | 5959 | ||
5972 | #ifdef CONFIG_IPW2200_DEBUG | ||
5973 | static void ipw_debug_config(struct ipw_priv *priv) | 5960 | static void ipw_debug_config(struct ipw_priv *priv) |
5974 | { | 5961 | { |
5975 | IPW_DEBUG_INFO("Scan completed, no valid APs matched " | 5962 | IPW_DEBUG_INFO("Scan completed, no valid APs matched " |
@@ -5994,9 +5981,6 @@ static void ipw_debug_config(struct ipw_priv *priv) | |||
5994 | IPW_DEBUG_INFO("PRIVACY off\n"); | 5981 | IPW_DEBUG_INFO("PRIVACY off\n"); |
5995 | IPW_DEBUG_INFO("RATE MASK: 0x%08X\n", priv->rates_mask); | 5982 | IPW_DEBUG_INFO("RATE MASK: 0x%08X\n", priv->rates_mask); |
5996 | } | 5983 | } |
5997 | #else | ||
5998 | #define ipw_debug_config(x) do {} while (0) | ||
5999 | #endif | ||
6000 | 5984 | ||
6001 | static void ipw_set_fixed_rate(struct ipw_priv *priv, int mode) | 5985 | static void ipw_set_fixed_rate(struct ipw_priv *priv, int mode) |
6002 | { | 5986 | { |
@@ -11467,9 +11451,7 @@ static int ipw_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent) | |||
11467 | 11451 | ||
11468 | priv->net_dev = net_dev; | 11452 | priv->net_dev = net_dev; |
11469 | priv->pci_dev = pdev; | 11453 | priv->pci_dev = pdev; |
11470 | #ifdef CONFIG_IPW2200_DEBUG | ||
11471 | ipw_debug_level = debug; | 11454 | ipw_debug_level = debug; |
11472 | #endif | ||
11473 | spin_lock_init(&priv->irq_lock); | 11455 | spin_lock_init(&priv->irq_lock); |
11474 | spin_lock_init(&priv->lock); | 11456 | spin_lock_init(&priv->lock); |
11475 | for (i = 0; i < IPW_IBSS_MAC_HASH_SIZE; i++) | 11457 | for (i = 0; i < IPW_IBSS_MAC_HASH_SIZE; i++) |