diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/wireless/Kconfig | 4 | ||||
-rw-r--r-- | drivers/net/wireless/ipw2100.c | 40 | ||||
-rw-r--r-- | drivers/net/wireless/ipw2100.h | 2 | ||||
-rw-r--r-- | drivers/net/wireless/ipw2200.c | 18 | ||||
-rw-r--r-- | drivers/net/wireless/ipw2200.h | 6 |
5 files changed, 35 insertions, 35 deletions
diff --git a/drivers/net/wireless/Kconfig b/drivers/net/wireless/Kconfig index d94421c74264..24f7967aab67 100644 --- a/drivers/net/wireless/Kconfig +++ b/drivers/net/wireless/Kconfig | |||
@@ -173,7 +173,7 @@ config IPW2100_MONITOR | |||
173 | promiscuous mode via the Wireless Tool's Monitor mode. While in this | 173 | promiscuous mode via the Wireless Tool's Monitor mode. While in this |
174 | mode, no packets can be sent. | 174 | mode, no packets can be sent. |
175 | 175 | ||
176 | config IPW_DEBUG | 176 | config IPW2100_DEBUG |
177 | bool "Enable full debugging output in IPW2100 module." | 177 | bool "Enable full debugging output in IPW2100 module." |
178 | depends on IPW2100 | 178 | depends on IPW2100 |
179 | ---help--- | 179 | ---help--- |
@@ -217,7 +217,7 @@ config IPW2200 | |||
217 | say M here and read <file:Documentation/modules.txt>. The module | 217 | say M here and read <file:Documentation/modules.txt>. The module |
218 | will be called ipw2200.ko. | 218 | will be called ipw2200.ko. |
219 | 219 | ||
220 | config IPW_DEBUG | 220 | config IPW2200_DEBUG |
221 | bool "Enable full debugging output in IPW2200 module." | 221 | bool "Enable full debugging output in IPW2200 module." |
222 | depends on IPW2200 | 222 | depends on IPW2200 |
223 | ---help--- | 223 | ---help--- |
diff --git a/drivers/net/wireless/ipw2100.c b/drivers/net/wireless/ipw2100.c index 77d2a21d4cd0..44cd3fcd1572 100644 --- a/drivers/net/wireless/ipw2100.c +++ b/drivers/net/wireless/ipw2100.c | |||
@@ -175,7 +175,7 @@ that only one external action is invoked at a time. | |||
175 | #define DRV_COPYRIGHT "Copyright(c) 2003-2005 Intel Corporation" | 175 | #define DRV_COPYRIGHT "Copyright(c) 2003-2005 Intel Corporation" |
176 | 176 | ||
177 | /* Debugging stuff */ | 177 | /* Debugging stuff */ |
178 | #ifdef CONFIG_IPW_DEBUG | 178 | #ifdef CONFIG_IPW2100_DEBUG |
179 | #define CONFIG_IPW2100_RX_DEBUG /* Reception debugging */ | 179 | #define CONFIG_IPW2100_RX_DEBUG /* Reception debugging */ |
180 | #endif | 180 | #endif |
181 | 181 | ||
@@ -208,7 +208,7 @@ MODULE_PARM_DESC(disable, "manually disable the radio (default 0 [radio on])"); | |||
208 | 208 | ||
209 | static u32 ipw2100_debug_level = IPW_DL_NONE; | 209 | static u32 ipw2100_debug_level = IPW_DL_NONE; |
210 | 210 | ||
211 | #ifdef CONFIG_IPW_DEBUG | 211 | #ifdef CONFIG_IPW2100_DEBUG |
212 | #define IPW_DEBUG(level, message...) \ | 212 | #define IPW_DEBUG(level, message...) \ |
213 | do { \ | 213 | do { \ |
214 | if (ipw2100_debug_level & (level)) { \ | 214 | if (ipw2100_debug_level & (level)) { \ |
@@ -219,9 +219,9 @@ do { \ | |||
219 | } while (0) | 219 | } while (0) |
220 | #else | 220 | #else |
221 | #define IPW_DEBUG(level, message...) do {} while (0) | 221 | #define IPW_DEBUG(level, message...) do {} while (0) |
222 | #endif /* CONFIG_IPW_DEBUG */ | 222 | #endif /* CONFIG_IPW2100_DEBUG */ |
223 | 223 | ||
224 | #ifdef CONFIG_IPW_DEBUG | 224 | #ifdef CONFIG_IPW2100_DEBUG |
225 | static const char *command_types[] = { | 225 | static const char *command_types[] = { |
226 | "undefined", | 226 | "undefined", |
227 | "unused", /* HOST_ATTENTION */ | 227 | "unused", /* HOST_ATTENTION */ |
@@ -2081,7 +2081,7 @@ static void isr_scan_complete(struct ipw2100_priv *priv, u32 status) | |||
2081 | priv->status &= ~STATUS_SCANNING; | 2081 | priv->status &= ~STATUS_SCANNING; |
2082 | } | 2082 | } |
2083 | 2083 | ||
2084 | #ifdef CONFIG_IPW_DEBUG | 2084 | #ifdef CONFIG_IPW2100_DEBUG |
2085 | #define IPW2100_HANDLER(v, f) { v, f, # v } | 2085 | #define IPW2100_HANDLER(v, f) { v, f, # v } |
2086 | struct ipw2100_status_indicator { | 2086 | struct ipw2100_status_indicator { |
2087 | int status; | 2087 | int status; |
@@ -2094,7 +2094,7 @@ struct ipw2100_status_indicator { | |||
2094 | int status; | 2094 | int status; |
2095 | void (*cb) (struct ipw2100_priv * priv, u32 status); | 2095 | void (*cb) (struct ipw2100_priv * priv, u32 status); |
2096 | }; | 2096 | }; |
2097 | #endif /* CONFIG_IPW_DEBUG */ | 2097 | #endif /* CONFIG_IPW2100_DEBUG */ |
2098 | 2098 | ||
2099 | static void isr_indicate_scanning(struct ipw2100_priv *priv, u32 status) | 2099 | static void isr_indicate_scanning(struct ipw2100_priv *priv, u32 status) |
2100 | { | 2100 | { |
@@ -2149,7 +2149,7 @@ static void isr_status_change(struct ipw2100_priv *priv, int status) | |||
2149 | static void isr_rx_complete_command(struct ipw2100_priv *priv, | 2149 | static void isr_rx_complete_command(struct ipw2100_priv *priv, |
2150 | struct ipw2100_cmd_header *cmd) | 2150 | struct ipw2100_cmd_header *cmd) |
2151 | { | 2151 | { |
2152 | #ifdef CONFIG_IPW_DEBUG | 2152 | #ifdef CONFIG_IPW2100_DEBUG |
2153 | if (cmd->host_command_reg < ARRAY_SIZE(command_types)) { | 2153 | if (cmd->host_command_reg < ARRAY_SIZE(command_types)) { |
2154 | IPW_DEBUG_HC("Command completed '%s (%d)'\n", | 2154 | IPW_DEBUG_HC("Command completed '%s (%d)'\n", |
2155 | command_types[cmd->host_command_reg], | 2155 | command_types[cmd->host_command_reg], |
@@ -2167,7 +2167,7 @@ static void isr_rx_complete_command(struct ipw2100_priv *priv, | |||
2167 | wake_up_interruptible(&priv->wait_command_queue); | 2167 | wake_up_interruptible(&priv->wait_command_queue); |
2168 | } | 2168 | } |
2169 | 2169 | ||
2170 | #ifdef CONFIG_IPW_DEBUG | 2170 | #ifdef CONFIG_IPW2100_DEBUG |
2171 | static const char *frame_types[] = { | 2171 | static const char *frame_types[] = { |
2172 | "COMMAND_STATUS_VAL", | 2172 | "COMMAND_STATUS_VAL", |
2173 | "STATUS_CHANGE_VAL", | 2173 | "STATUS_CHANGE_VAL", |
@@ -2290,7 +2290,7 @@ static u8 packet_data[IPW_RX_NIC_BUFFER_LENGTH]; | |||
2290 | 2290 | ||
2291 | static inline void ipw2100_corruption_detected(struct ipw2100_priv *priv, int i) | 2291 | static inline void ipw2100_corruption_detected(struct ipw2100_priv *priv, int i) |
2292 | { | 2292 | { |
2293 | #ifdef CONFIG_IPW_DEBUG_C3 | 2293 | #ifdef CONFIG_IPW2100_DEBUG_C3 |
2294 | struct ipw2100_status *status = &priv->status_queue.drv[i]; | 2294 | struct ipw2100_status *status = &priv->status_queue.drv[i]; |
2295 | u32 match, reg; | 2295 | u32 match, reg; |
2296 | int j; | 2296 | int j; |
@@ -2312,7 +2312,7 @@ static inline void ipw2100_corruption_detected(struct ipw2100_priv *priv, int i) | |||
2312 | } | 2312 | } |
2313 | #endif | 2313 | #endif |
2314 | 2314 | ||
2315 | #ifdef CONFIG_IPW_DEBUG_C3 | 2315 | #ifdef CONFIG_IPW2100_DEBUG_C3 |
2316 | /* Halt the fimrware so we can get a good image */ | 2316 | /* Halt the fimrware so we can get a good image */ |
2317 | write_register(priv->net_dev, IPW_REG_RESET_REG, | 2317 | write_register(priv->net_dev, IPW_REG_RESET_REG, |
2318 | IPW_AUX_HOST_RESET_REG_STOP_MASTER); | 2318 | IPW_AUX_HOST_RESET_REG_STOP_MASTER); |
@@ -2716,7 +2716,7 @@ static inline int __ipw2100_tx_process(struct ipw2100_priv *priv) | |||
2716 | list_del(element); | 2716 | list_del(element); |
2717 | DEC_STAT(&priv->fw_pend_stat); | 2717 | DEC_STAT(&priv->fw_pend_stat); |
2718 | 2718 | ||
2719 | #ifdef CONFIG_IPW_DEBUG | 2719 | #ifdef CONFIG_IPW2100_DEBUG |
2720 | { | 2720 | { |
2721 | int i = txq->oldest; | 2721 | int i = txq->oldest; |
2722 | IPW_DEBUG_TX("TX%d V=%p P=%04X T=%04X L=%d\n", i, | 2722 | IPW_DEBUG_TX("TX%d V=%p P=%04X T=%04X L=%d\n", i, |
@@ -2782,7 +2782,7 @@ static inline int __ipw2100_tx_process(struct ipw2100_priv *priv) | |||
2782 | "something else: ids %d=%d.\n", | 2782 | "something else: ids %d=%d.\n", |
2783 | priv->net_dev->name, txq->oldest, packet->index); | 2783 | priv->net_dev->name, txq->oldest, packet->index); |
2784 | 2784 | ||
2785 | #ifdef CONFIG_IPW_DEBUG | 2785 | #ifdef CONFIG_IPW2100_DEBUG |
2786 | if (packet->info.c_struct.cmd->host_command_reg < | 2786 | if (packet->info.c_struct.cmd->host_command_reg < |
2787 | sizeof(command_types) / sizeof(*command_types)) | 2787 | sizeof(command_types) / sizeof(*command_types)) |
2788 | IPW_DEBUG_TX("Command '%s (%d)' processed: %d.\n", | 2788 | IPW_DEBUG_TX("Command '%s (%d)' processed: %d.\n", |
@@ -2975,7 +2975,7 @@ static void ipw2100_tx_send_data(struct ipw2100_priv *priv) | |||
2975 | 2975 | ||
2976 | IPW_DEBUG_TX("data header tbd TX%d P=%08x L=%d\n", | 2976 | IPW_DEBUG_TX("data header tbd TX%d P=%08x L=%d\n", |
2977 | packet->index, tbd->host_addr, tbd->buf_length); | 2977 | packet->index, tbd->host_addr, tbd->buf_length); |
2978 | #ifdef CONFIG_IPW_DEBUG | 2978 | #ifdef CONFIG_IPW2100_DEBUG |
2979 | if (packet->info.d_struct.txb->nr_frags > 1) | 2979 | if (packet->info.d_struct.txb->nr_frags > 1) |
2980 | IPW_DEBUG_FRAG("fragment Tx: %d frames\n", | 2980 | IPW_DEBUG_FRAG("fragment Tx: %d frames\n", |
2981 | packet->info.d_struct.txb->nr_frags); | 2981 | packet->info.d_struct.txb->nr_frags); |
@@ -3827,7 +3827,7 @@ static ssize_t show_stats(struct device *d, struct device_attribute *attr, | |||
3827 | priv->rx_interrupts, priv->inta_other); | 3827 | priv->rx_interrupts, priv->inta_other); |
3828 | out += sprintf(out, "firmware resets: %d\n", priv->resets); | 3828 | out += sprintf(out, "firmware resets: %d\n", priv->resets); |
3829 | out += sprintf(out, "firmware hangs: %d\n", priv->hangs); | 3829 | out += sprintf(out, "firmware hangs: %d\n", priv->hangs); |
3830 | #ifdef CONFIG_IPW_DEBUG | 3830 | #ifdef CONFIG_IPW2100_DEBUG |
3831 | out += sprintf(out, "packet mismatch image: %s\n", | 3831 | out += sprintf(out, "packet mismatch image: %s\n", |
3832 | priv->snapshot[0] ? "YES" : "NO"); | 3832 | priv->snapshot[0] ? "YES" : "NO"); |
3833 | #endif | 3833 | #endif |
@@ -3982,7 +3982,7 @@ static ssize_t show_bssinfo(struct device *d, struct device_attribute *attr, | |||
3982 | 3982 | ||
3983 | static DEVICE_ATTR(bssinfo, S_IRUGO, show_bssinfo, NULL); | 3983 | static DEVICE_ATTR(bssinfo, S_IRUGO, show_bssinfo, NULL); |
3984 | 3984 | ||
3985 | #ifdef CONFIG_IPW_DEBUG | 3985 | #ifdef CONFIG_IPW2100_DEBUG |
3986 | static ssize_t show_debug_level(struct device_driver *d, char *buf) | 3986 | static ssize_t show_debug_level(struct device_driver *d, char *buf) |
3987 | { | 3987 | { |
3988 | return sprintf(buf, "0x%08X\n", ipw2100_debug_level); | 3988 | return sprintf(buf, "0x%08X\n", ipw2100_debug_level); |
@@ -4011,7 +4011,7 @@ static ssize_t store_debug_level(struct device_driver *d, | |||
4011 | 4011 | ||
4012 | static DRIVER_ATTR(debug_level, S_IWUSR | S_IRUGO, show_debug_level, | 4012 | static DRIVER_ATTR(debug_level, S_IWUSR | S_IRUGO, show_debug_level, |
4013 | store_debug_level); | 4013 | store_debug_level); |
4014 | #endif /* CONFIG_IPW_DEBUG */ | 4014 | #endif /* CONFIG_IPW2100_DEBUG */ |
4015 | 4015 | ||
4016 | static ssize_t show_fatal_error(struct device *d, | 4016 | static ssize_t show_fatal_error(struct device *d, |
4017 | struct device_attribute *attr, char *buf) | 4017 | struct device_attribute *attr, char *buf) |
@@ -4937,7 +4937,7 @@ static int ipw2100_set_mandatory_bssid(struct ipw2100_priv *priv, u8 * bssid, | |||
4937 | }; | 4937 | }; |
4938 | int err; | 4938 | int err; |
4939 | 4939 | ||
4940 | #ifdef CONFIG_IPW_DEBUG | 4940 | #ifdef CONFIG_IPW2100_DEBUG |
4941 | if (bssid != NULL) | 4941 | if (bssid != NULL) |
4942 | IPW_DEBUG_HC("MANDATORY_BSSID: %02X:%02X:%02X:%02X:%02X:%02X\n", | 4942 | IPW_DEBUG_HC("MANDATORY_BSSID: %02X:%02X:%02X:%02X:%02X:%02X\n", |
4943 | bssid[0], bssid[1], bssid[2], bssid[3], bssid[4], | 4943 | bssid[0], bssid[1], bssid[2], bssid[3], bssid[4], |
@@ -6858,7 +6858,7 @@ static int __init ipw2100_init(void) | |||
6858 | 6858 | ||
6859 | ret = pci_module_init(&ipw2100_pci_driver); | 6859 | ret = pci_module_init(&ipw2100_pci_driver); |
6860 | 6860 | ||
6861 | #ifdef CONFIG_IPW_DEBUG | 6861 | #ifdef CONFIG_IPW2100_DEBUG |
6862 | ipw2100_debug_level = debug; | 6862 | ipw2100_debug_level = debug; |
6863 | driver_create_file(&ipw2100_pci_driver.driver, | 6863 | driver_create_file(&ipw2100_pci_driver.driver, |
6864 | &driver_attr_debug_level); | 6864 | &driver_attr_debug_level); |
@@ -6873,7 +6873,7 @@ static int __init ipw2100_init(void) | |||
6873 | static void __exit ipw2100_exit(void) | 6873 | static void __exit ipw2100_exit(void) |
6874 | { | 6874 | { |
6875 | /* FIXME: IPG: check that we have no instances of the devices open */ | 6875 | /* FIXME: IPG: check that we have no instances of the devices open */ |
6876 | #ifdef CONFIG_IPW_DEBUG | 6876 | #ifdef CONFIG_IPW2100_DEBUG |
6877 | driver_remove_file(&ipw2100_pci_driver.driver, | 6877 | driver_remove_file(&ipw2100_pci_driver.driver, |
6878 | &driver_attr_debug_level); | 6878 | &driver_attr_debug_level); |
6879 | #endif | 6879 | #endif |
@@ -8558,7 +8558,7 @@ static struct iw_statistics *ipw2100_wx_wireless_stats(struct net_device *dev) | |||
8558 | 8558 | ||
8559 | quality = min(beacon_qual, min(tx_qual, rssi_qual)); | 8559 | quality = min(beacon_qual, min(tx_qual, rssi_qual)); |
8560 | 8560 | ||
8561 | #ifdef CONFIG_IPW_DEBUG | 8561 | #ifdef CONFIG_IPW2100_DEBUG |
8562 | if (beacon_qual == quality) | 8562 | if (beacon_qual == quality) |
8563 | IPW_DEBUG_WX("Quality clamped by Missed Beacons\n"); | 8563 | IPW_DEBUG_WX("Quality clamped by Missed Beacons\n"); |
8564 | else if (tx_qual == quality) | 8564 | else if (tx_qual == quality) |
diff --git a/drivers/net/wireless/ipw2100.h b/drivers/net/wireless/ipw2100.h index 7c65b10bb164..f6c51441fa87 100644 --- a/drivers/net/wireless/ipw2100.h +++ b/drivers/net/wireless/ipw2100.h | |||
@@ -73,7 +73,7 @@ struct ipw2100_rx_packet; | |||
73 | * you simply need to add your entry to the ipw2100_debug_levels array. | 73 | * you simply need to add your entry to the ipw2100_debug_levels array. |
74 | * | 74 | * |
75 | * If you do not see debug_level in /proc/net/ipw2100 then you do not have | 75 | * If you do not see debug_level in /proc/net/ipw2100 then you do not have |
76 | * CONFIG_IPW_DEBUG defined in your kernel configuration | 76 | * CONFIG_IPW2100_DEBUG defined in your kernel configuration |
77 | * | 77 | * |
78 | */ | 78 | */ |
79 | 79 | ||
diff --git a/drivers/net/wireless/ipw2200.c b/drivers/net/wireless/ipw2200.c index 0e47b23605f9..cd034b79bc9d 100644 --- a/drivers/net/wireless/ipw2200.c +++ b/drivers/net/wireless/ipw2200.c | |||
@@ -462,7 +462,7 @@ static inline void ipw_disable_interrupts(struct ipw_priv *priv) | |||
462 | ipw_write32(priv, IPW_INTA_MASK_R, ~IPW_INTA_MASK_ALL); | 462 | ipw_write32(priv, IPW_INTA_MASK_R, ~IPW_INTA_MASK_ALL); |
463 | } | 463 | } |
464 | 464 | ||
465 | #ifdef CONFIG_IPW_DEBUG | 465 | #ifdef CONFIG_IPW2200_DEBUG |
466 | static char *ipw_error_desc(u32 val) | 466 | static char *ipw_error_desc(u32 val) |
467 | { | 467 | { |
468 | switch (val) { | 468 | switch (val) { |
@@ -1235,7 +1235,7 @@ static ssize_t store_scan_age(struct device *d, struct device_attribute *attr, | |||
1235 | const char *buf, size_t count) | 1235 | const char *buf, size_t count) |
1236 | { | 1236 | { |
1237 | struct ipw_priv *priv = dev_get_drvdata(d); | 1237 | struct ipw_priv *priv = dev_get_drvdata(d); |
1238 | #ifdef CONFIG_IPW_DEBUG | 1238 | #ifdef CONFIG_IPW2200_DEBUG |
1239 | struct net_device *dev = priv->net_dev; | 1239 | struct net_device *dev = priv->net_dev; |
1240 | #endif | 1240 | #endif |
1241 | char buffer[] = "00000000"; | 1241 | char buffer[] = "00000000"; |
@@ -1754,7 +1754,7 @@ static void ipw_irq_tasklet(struct ipw_priv *priv) | |||
1754 | IPW_ERROR("Firmware error detected. Restarting.\n"); | 1754 | IPW_ERROR("Firmware error detected. Restarting.\n"); |
1755 | if (priv->error) { | 1755 | if (priv->error) { |
1756 | IPW_ERROR("Sysfs 'error' log already exists.\n"); | 1756 | IPW_ERROR("Sysfs 'error' log already exists.\n"); |
1757 | #ifdef CONFIG_IPW_DEBUG | 1757 | #ifdef CONFIG_IPW2200_DEBUG |
1758 | if (ipw_debug_level & IPW_DL_FW_ERRORS) { | 1758 | if (ipw_debug_level & IPW_DL_FW_ERRORS) { |
1759 | struct ipw_fw_error *error = | 1759 | struct ipw_fw_error *error = |
1760 | ipw_alloc_error_log(priv); | 1760 | ipw_alloc_error_log(priv); |
@@ -1770,7 +1770,7 @@ static void ipw_irq_tasklet(struct ipw_priv *priv) | |||
1770 | else | 1770 | else |
1771 | IPW_ERROR("Error allocating sysfs 'error' " | 1771 | IPW_ERROR("Error allocating sysfs 'error' " |
1772 | "log.\n"); | 1772 | "log.\n"); |
1773 | #ifdef CONFIG_IPW_DEBUG | 1773 | #ifdef CONFIG_IPW2200_DEBUG |
1774 | if (ipw_debug_level & IPW_DL_FW_ERRORS) | 1774 | if (ipw_debug_level & IPW_DL_FW_ERRORS) |
1775 | ipw_dump_error_log(priv, priv->error); | 1775 | ipw_dump_error_log(priv, priv->error); |
1776 | #endif | 1776 | #endif |
@@ -3778,7 +3778,7 @@ static const struct ipw_status_code ipw_status_codes[] = { | |||
3778 | {0x2E, "Cipher suite is rejected per security policy"}, | 3778 | {0x2E, "Cipher suite is rejected per security policy"}, |
3779 | }; | 3779 | }; |
3780 | 3780 | ||
3781 | #ifdef CONFIG_IPW_DEBUG | 3781 | #ifdef CONFIG_IPW2200_DEBUG |
3782 | static const char *ipw_get_status_code(u16 status) | 3782 | static const char *ipw_get_status_code(u16 status) |
3783 | { | 3783 | { |
3784 | int i; | 3784 | int i; |
@@ -4250,7 +4250,7 @@ static inline void ipw_rx_notification(struct ipw_priv *priv, | |||
4250 | if (priv-> | 4250 | if (priv-> |
4251 | status & (STATUS_ASSOCIATED | | 4251 | status & (STATUS_ASSOCIATED | |
4252 | STATUS_AUTH)) { | 4252 | STATUS_AUTH)) { |
4253 | #ifdef CONFIG_IPW_DEBUG | 4253 | #ifdef CONFIG_IPW2200_DEBUG |
4254 | struct notif_authenticate *auth | 4254 | struct notif_authenticate *auth |
4255 | = ¬if->u.auth; | 4255 | = ¬if->u.auth; |
4256 | IPW_DEBUG(IPW_DL_NOTIF | | 4256 | IPW_DEBUG(IPW_DL_NOTIF | |
@@ -5827,7 +5827,7 @@ static void ipw_bg_adhoc_check(void *data) | |||
5827 | up(&priv->sem); | 5827 | up(&priv->sem); |
5828 | } | 5828 | } |
5829 | 5829 | ||
5830 | #ifdef CONFIG_IPW_DEBUG | 5830 | #ifdef CONFIG_IPW2200_DEBUG |
5831 | static void ipw_debug_config(struct ipw_priv *priv) | 5831 | static void ipw_debug_config(struct ipw_priv *priv) |
5832 | { | 5832 | { |
5833 | IPW_DEBUG_INFO("Scan completed, no valid APs matched " | 5833 | IPW_DEBUG_INFO("Scan completed, no valid APs matched " |
@@ -7814,7 +7814,7 @@ static void ipw_rx(struct ipw_priv *priv) | |||
7814 | 7814 | ||
7815 | while (i != r) { | 7815 | while (i != r) { |
7816 | rxb = priv->rxq->queue[i]; | 7816 | rxb = priv->rxq->queue[i]; |
7817 | #ifdef CONFIG_IPW_DEBUG | 7817 | #ifdef CONFIG_IPW2200_DEBUG |
7818 | if (unlikely(rxb == NULL)) { | 7818 | if (unlikely(rxb == NULL)) { |
7819 | printk(KERN_CRIT "Queue not allocated!\n"); | 7819 | printk(KERN_CRIT "Queue not allocated!\n"); |
7820 | break; | 7820 | break; |
@@ -10955,7 +10955,7 @@ static int ipw_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent) | |||
10955 | 10955 | ||
10956 | priv->net_dev = net_dev; | 10956 | priv->net_dev = net_dev; |
10957 | priv->pci_dev = pdev; | 10957 | priv->pci_dev = pdev; |
10958 | #ifdef CONFIG_IPW_DEBUG | 10958 | #ifdef CONFIG_IPW2200_DEBUG |
10959 | ipw_debug_level = debug; | 10959 | ipw_debug_level = debug; |
10960 | #endif | 10960 | #endif |
10961 | spin_lock_init(&priv->lock); | 10961 | spin_lock_init(&priv->lock); |
diff --git a/drivers/net/wireless/ipw2200.h b/drivers/net/wireless/ipw2200.h index 1c98db0652c9..e65620a4d79e 100644 --- a/drivers/net/wireless/ipw2200.h +++ b/drivers/net/wireless/ipw2200.h | |||
@@ -1301,14 +1301,14 @@ struct ipw_priv { | |||
1301 | 1301 | ||
1302 | /* debug macros */ | 1302 | /* debug macros */ |
1303 | 1303 | ||
1304 | #ifdef CONFIG_IPW_DEBUG | 1304 | #ifdef CONFIG_IPW2200_DEBUG |
1305 | #define IPW_DEBUG(level, fmt, args...) \ | 1305 | #define IPW_DEBUG(level, fmt, args...) \ |
1306 | do { if (ipw_debug_level & (level)) \ | 1306 | do { if (ipw_debug_level & (level)) \ |
1307 | printk(KERN_DEBUG DRV_NAME": %c %s " fmt, \ | 1307 | printk(KERN_DEBUG DRV_NAME": %c %s " fmt, \ |
1308 | in_interrupt() ? 'I' : 'U', __FUNCTION__ , ## args); } while (0) | 1308 | in_interrupt() ? 'I' : 'U', __FUNCTION__ , ## args); } while (0) |
1309 | #else | 1309 | #else |
1310 | #define IPW_DEBUG(level, fmt, args...) do {} while (0) | 1310 | #define IPW_DEBUG(level, fmt, args...) do {} while (0) |
1311 | #endif /* CONFIG_IPW_DEBUG */ | 1311 | #endif /* CONFIG_IPW2200_DEBUG */ |
1312 | 1312 | ||
1313 | /* | 1313 | /* |
1314 | * To use the debug system; | 1314 | * To use the debug system; |
@@ -1332,7 +1332,7 @@ do { if (ipw_debug_level & (level)) \ | |||
1332 | * you simply need to add your entry to the ipw_debug_levels array. | 1332 | * you simply need to add your entry to the ipw_debug_levels array. |
1333 | * | 1333 | * |
1334 | * If you do not see debug_level in /proc/net/ipw then you do not have | 1334 | * If you do not see debug_level in /proc/net/ipw then you do not have |
1335 | * CONFIG_IPW_DEBUG defined in your kernel configuration | 1335 | * CONFIG_IPW2200_DEBUG defined in your kernel configuration |
1336 | * | 1336 | * |
1337 | */ | 1337 | */ |
1338 | 1338 | ||