diff options
Diffstat (limited to 'drivers/net/wireless/ipw2100.c')
-rw-r--r-- | drivers/net/wireless/ipw2100.c | 40 |
1 files changed, 20 insertions, 20 deletions
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) |