aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ipw2x00
diff options
context:
space:
mode:
authorHelmut Schaa <helmut.schaa@googlemail.com>2009-03-06 06:02:25 -0500
committerJohn W. Linville <linville@tuxdriver.com>2009-03-16 18:09:33 -0400
commit3756162b06001d122ce31c716f9784636c592c9c (patch)
tree268d7beb4eaeca5035e17833702cacb7ed0cadeb /drivers/net/wireless/ipw2x00
parent5077fd358b652b8ec33ae7158f99e08d29ad65c0 (diff)
libipw: fix debug output
Replace all remaining occurrences of CONFIG_IEEE80211_DEBUG with CONFIG_LIBIPW_DEBUG in libipw to allow debug output again. Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ipw2x00')
-rw-r--r--drivers/net/wireless/ipw2x00/ieee80211.h6
-rw-r--r--drivers/net/wireless/ipw2x00/libipw_module.c16
-rw-r--r--drivers/net/wireless/ipw2x00/libipw_rx.c16
3 files changed, 19 insertions, 19 deletions
diff --git a/drivers/net/wireless/ipw2x00/ieee80211.h b/drivers/net/wireless/ipw2x00/ieee80211.h
index 7515fad00f9..97c7cfce543 100644
--- a/drivers/net/wireless/ipw2x00/ieee80211.h
+++ b/drivers/net/wireless/ipw2x00/ieee80211.h
@@ -112,7 +112,7 @@
112 112
113/* debug macros */ 113/* debug macros */
114 114
115#ifdef CONFIG_IEEE80211_DEBUG 115#ifdef CONFIG_LIBIPW_DEBUG
116extern u32 ieee80211_debug_level; 116extern u32 ieee80211_debug_level;
117#define IEEE80211_DEBUG(level, fmt, args...) \ 117#define IEEE80211_DEBUG(level, fmt, args...) \
118do { if (ieee80211_debug_level & (level)) \ 118do { if (ieee80211_debug_level & (level)) \
@@ -128,7 +128,7 @@ static inline bool ieee80211_ratelimit_debug(u32 level)
128{ 128{
129 return false; 129 return false;
130} 130}
131#endif /* CONFIG_IEEE80211_DEBUG */ 131#endif /* CONFIG_LIBIPW_DEBUG */
132 132
133/* 133/*
134 * To use the debug system: 134 * To use the debug system:
@@ -152,7 +152,7 @@ static inline bool ieee80211_ratelimit_debug(u32 level)
152 * you simply need to add your entry to the ieee80211_debug_level array. 152 * you simply need to add your entry to the ieee80211_debug_level array.
153 * 153 *
154 * If you do not see debug_level in /proc/net/ieee80211 then you do not have 154 * If you do not see debug_level in /proc/net/ieee80211 then you do not have
155 * CONFIG_IEEE80211_DEBUG defined in your kernel configuration 155 * CONFIG_LIBIPW_DEBUG defined in your kernel configuration
156 * 156 *
157 */ 157 */
158 158
diff --git a/drivers/net/wireless/ipw2x00/libipw_module.c b/drivers/net/wireless/ipw2x00/libipw_module.c
index ec7753446bd..f4803fc0541 100644
--- a/drivers/net/wireless/ipw2x00/libipw_module.c
+++ b/drivers/net/wireless/ipw2x00/libipw_module.c
@@ -221,7 +221,7 @@ void free_ieee80211(struct net_device *dev)
221 free_netdev(dev); 221 free_netdev(dev);
222} 222}
223 223
224#ifdef CONFIG_IEEE80211_DEBUG 224#ifdef CONFIG_LIBIPW_DEBUG
225 225
226static int debug = 0; 226static int debug = 0;
227u32 ieee80211_debug_level = 0; 227u32 ieee80211_debug_level = 0;
@@ -252,11 +252,11 @@ static int store_debug_level(struct file *file, const char __user * buffer,
252 252
253 return strnlen(buf, len); 253 return strnlen(buf, len);
254} 254}
255#endif /* CONFIG_IEEE80211_DEBUG */ 255#endif /* CONFIG_LIBIPW_DEBUG */
256 256
257static int __init ieee80211_init(void) 257static int __init ieee80211_init(void)
258{ 258{
259#ifdef CONFIG_IEEE80211_DEBUG 259#ifdef CONFIG_LIBIPW_DEBUG
260 struct proc_dir_entry *e; 260 struct proc_dir_entry *e;
261 261
262 ieee80211_debug_level = debug; 262 ieee80211_debug_level = debug;
@@ -276,7 +276,7 @@ static int __init ieee80211_init(void)
276 e->read_proc = show_debug_level; 276 e->read_proc = show_debug_level;
277 e->write_proc = store_debug_level; 277 e->write_proc = store_debug_level;
278 e->data = NULL; 278 e->data = NULL;
279#endif /* CONFIG_IEEE80211_DEBUG */ 279#endif /* CONFIG_LIBIPW_DEBUG */
280 280
281 printk(KERN_INFO DRV_NAME ": " DRV_DESCRIPTION ", " DRV_VERSION "\n"); 281 printk(KERN_INFO DRV_NAME ": " DRV_DESCRIPTION ", " DRV_VERSION "\n");
282 printk(KERN_INFO DRV_NAME ": " DRV_COPYRIGHT "\n"); 282 printk(KERN_INFO DRV_NAME ": " DRV_COPYRIGHT "\n");
@@ -286,20 +286,20 @@ static int __init ieee80211_init(void)
286 286
287static void __exit ieee80211_exit(void) 287static void __exit ieee80211_exit(void)
288{ 288{
289#ifdef CONFIG_IEEE80211_DEBUG 289#ifdef CONFIG_LIBIPW_DEBUG
290 if (ieee80211_proc) { 290 if (ieee80211_proc) {
291 remove_proc_entry("debug_level", ieee80211_proc); 291 remove_proc_entry("debug_level", ieee80211_proc);
292 remove_proc_entry(DRV_NAME, init_net.proc_net); 292 remove_proc_entry(DRV_NAME, init_net.proc_net);
293 ieee80211_proc = NULL; 293 ieee80211_proc = NULL;
294 } 294 }
295#endif /* CONFIG_IEEE80211_DEBUG */ 295#endif /* CONFIG_LIBIPW_DEBUG */
296} 296}
297 297
298#ifdef CONFIG_IEEE80211_DEBUG 298#ifdef CONFIG_LIBIPW_DEBUG
299#include <linux/moduleparam.h> 299#include <linux/moduleparam.h>
300module_param(debug, int, 0444); 300module_param(debug, int, 0444);
301MODULE_PARM_DESC(debug, "debug output mask"); 301MODULE_PARM_DESC(debug, "debug output mask");
302#endif /* CONFIG_IEEE80211_DEBUG */ 302#endif /* CONFIG_LIBIPW_DEBUG */
303 303
304module_exit(ieee80211_exit); 304module_exit(ieee80211_exit);
305module_init(ieee80211_init); 305module_init(ieee80211_init);
diff --git a/drivers/net/wireless/ipw2x00/libipw_rx.c b/drivers/net/wireless/ipw2x00/libipw_rx.c
index 8d9e96f9eb2..794d2fc0581 100644
--- a/drivers/net/wireless/ipw2x00/libipw_rx.c
+++ b/drivers/net/wireless/ipw2x00/libipw_rx.c
@@ -1080,7 +1080,7 @@ static int ieee80211_parse_qos_info_param_IE(struct ieee80211_info_element
1080 return rc; 1080 return rc;
1081} 1081}
1082 1082
1083#ifdef CONFIG_IEEE80211_DEBUG 1083#ifdef CONFIG_LIBIPW_DEBUG
1084#define MFIE_STRING(x) case MFIE_TYPE_ ##x: return #x 1084#define MFIE_STRING(x) case MFIE_TYPE_ ##x: return #x
1085 1085
1086static const char *get_info_element_string(u16 id) 1086static const char *get_info_element_string(u16 id)
@@ -1125,7 +1125,7 @@ static int ieee80211_parse_info_param(struct ieee80211_info_element
1125{ 1125{
1126 DECLARE_SSID_BUF(ssid); 1126 DECLARE_SSID_BUF(ssid);
1127 u8 i; 1127 u8 i;
1128#ifdef CONFIG_IEEE80211_DEBUG 1128#ifdef CONFIG_LIBIPW_DEBUG
1129 char rates_str[64]; 1129 char rates_str[64];
1130 char *p; 1130 char *p;
1131#endif 1131#endif
@@ -1161,14 +1161,14 @@ static int ieee80211_parse_info_param(struct ieee80211_info_element
1161 break; 1161 break;
1162 1162
1163 case MFIE_TYPE_RATES: 1163 case MFIE_TYPE_RATES:
1164#ifdef CONFIG_IEEE80211_DEBUG 1164#ifdef CONFIG_LIBIPW_DEBUG
1165 p = rates_str; 1165 p = rates_str;
1166#endif 1166#endif
1167 network->rates_len = min(info_element->len, 1167 network->rates_len = min(info_element->len,
1168 MAX_RATES_LENGTH); 1168 MAX_RATES_LENGTH);
1169 for (i = 0; i < network->rates_len; i++) { 1169 for (i = 0; i < network->rates_len; i++) {
1170 network->rates[i] = info_element->data[i]; 1170 network->rates[i] = info_element->data[i];
1171#ifdef CONFIG_IEEE80211_DEBUG 1171#ifdef CONFIG_LIBIPW_DEBUG
1172 p += snprintf(p, sizeof(rates_str) - 1172 p += snprintf(p, sizeof(rates_str) -
1173 (p - rates_str), "%02X ", 1173 (p - rates_str), "%02X ",
1174 network->rates[i]); 1174 network->rates[i]);
@@ -1188,14 +1188,14 @@ static int ieee80211_parse_info_param(struct ieee80211_info_element
1188 break; 1188 break;
1189 1189
1190 case MFIE_TYPE_RATES_EX: 1190 case MFIE_TYPE_RATES_EX:
1191#ifdef CONFIG_IEEE80211_DEBUG 1191#ifdef CONFIG_LIBIPW_DEBUG
1192 p = rates_str; 1192 p = rates_str;
1193#endif 1193#endif
1194 network->rates_ex_len = min(info_element->len, 1194 network->rates_ex_len = min(info_element->len,
1195 MAX_RATES_EX_LENGTH); 1195 MAX_RATES_EX_LENGTH);
1196 for (i = 0; i < network->rates_ex_len; i++) { 1196 for (i = 0; i < network->rates_ex_len; i++) {
1197 network->rates_ex[i] = info_element->data[i]; 1197 network->rates_ex[i] = info_element->data[i];
1198#ifdef CONFIG_IEEE80211_DEBUG 1198#ifdef CONFIG_LIBIPW_DEBUG
1199 p += snprintf(p, sizeof(rates_str) - 1199 p += snprintf(p, sizeof(rates_str) -
1200 (p - rates_str), "%02X ", 1200 (p - rates_str), "%02X ",
1201 network->rates[i]); 1201 network->rates[i]);
@@ -1562,7 +1562,7 @@ static void ieee80211_process_probe_response(struct ieee80211_device
1562 }; 1562 };
1563 struct ieee80211_network *target; 1563 struct ieee80211_network *target;
1564 struct ieee80211_network *oldest = NULL; 1564 struct ieee80211_network *oldest = NULL;
1565#ifdef CONFIG_IEEE80211_DEBUG 1565#ifdef CONFIG_LIBIPW_DEBUG
1566 struct ieee80211_info_element *info_element = beacon->info_element; 1566 struct ieee80211_info_element *info_element = beacon->info_element;
1567#endif 1567#endif
1568 unsigned long flags; 1568 unsigned long flags;
@@ -1640,7 +1640,7 @@ static void ieee80211_process_probe_response(struct ieee80211_device
1640 list_del(ieee->network_free_list.next); 1640 list_del(ieee->network_free_list.next);
1641 } 1641 }
1642 1642
1643#ifdef CONFIG_IEEE80211_DEBUG 1643#ifdef CONFIG_LIBIPW_DEBUG
1644 IEEE80211_DEBUG_SCAN("Adding '%s' (%pM) via %s.\n", 1644 IEEE80211_DEBUG_SCAN("Adding '%s' (%pM) via %s.\n",
1645 print_ssid(ssid, network.ssid, 1645 print_ssid(ssid, network.ssid,
1646 network.ssid_len), 1646 network.ssid_len),