aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorJames Ketrenos <jketreno@linux.intel.com>2005-09-21 12:58:46 -0400
committerJeff Garzik <jgarzik@pobox.com>2005-09-22 15:39:41 -0400
commit31696160c7415b5a7efa650c7f1ca5c9623f5d8f (patch)
tree1f82e3a1e477374c78240ec2e95cece4859d9e81 /net
parent8a4ae7f2e24bf99b61082ca45de8e54e70300b9d (diff)
[PATCH] ieee80211: Added subsystem version string and reporting via MODULE_VERSION
tree c1b50ac5d2d1f9b727c39c6bd86a7872f25a1127 parent 1bb997a3ac7dd1941e02426d2f70bd28993a82b7 author James Ketrenos <jketreno@linux.intel.com> 1126720779 -0500 committer James Ketrenos <jketreno@linux.intel.com> 1127314674 -0500 Added subsystem version string and reporting via MODULE_VERSION and pritnk during load. NOTE: This is the version support split out from patch 24/29 of the prior series. Signed-off-by: James Ketrenos <jketreno@linux.intel.com> Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
Diffstat (limited to 'net')
-rw-r--r--net/ieee80211/ieee80211_module.c24
1 files changed, 18 insertions, 6 deletions
diff --git a/net/ieee80211/ieee80211_module.c b/net/ieee80211/ieee80211_module.c
index 0ae91c9917cf..319312564167 100644
--- a/net/ieee80211/ieee80211_module.c
+++ b/net/ieee80211/ieee80211_module.c
@@ -53,13 +53,16 @@
53 53
54#include <net/ieee80211.h> 54#include <net/ieee80211.h>
55 55
56MODULE_DESCRIPTION("802.11 data/management/control stack"); 56#define DRV_DESCRIPTION "802.11 data/management/control stack"
57MODULE_AUTHOR 57#define DRV_NAME "ieee80211"
58 ("Copyright (C) 2004 Intel Corporation <jketreno@linux.intel.com>"); 58#define DRV_VERSION IEEE80211_VERSION
59#define DRV_COPYRIGHT "Copyright (C) 2004-2005 Intel Corporation <jketreno@linux.intel.com>"
60
61MODULE_VERSION(DRV_VERSION);
62MODULE_DESCRIPTION(DRV_DESCRIPTION);
63MODULE_AUTHOR(DRV_COPYRIGHT);
59MODULE_LICENSE("GPL"); 64MODULE_LICENSE("GPL");
60 65
61#define DRV_NAME "ieee80211"
62
63static inline int ieee80211_networks_allocate(struct ieee80211_device *ieee) 66static inline int ieee80211_networks_allocate(struct ieee80211_device *ieee)
64{ 67{
65 if (ieee->networks) 68 if (ieee->networks)
@@ -220,9 +223,11 @@ static int store_debug_level(struct file *file, const char __user * buffer,
220 223
221 return strnlen(buf, len); 224 return strnlen(buf, len);
222} 225}
226#endif /* CONFIG_IEEE80211_DEBUG */
223 227
224static int __init ieee80211_init(void) 228static int __init ieee80211_init(void)
225{ 229{
230#ifdef CONFIG_IEEE80211_DEBUG
226 struct proc_dir_entry *e; 231 struct proc_dir_entry *e;
227 232
228 ieee80211_debug_level = debug; 233 ieee80211_debug_level = debug;
@@ -242,26 +247,33 @@ static int __init ieee80211_init(void)
242 e->read_proc = show_debug_level; 247 e->read_proc = show_debug_level;
243 e->write_proc = store_debug_level; 248 e->write_proc = store_debug_level;
244 e->data = NULL; 249 e->data = NULL;
250#endif /* CONFIG_IEEE80211_DEBUG */
251
252 printk(KERN_INFO DRV_NAME ": " DRV_DESCRIPTION ", " DRV_VERSION "\n");
253 printk(KERN_INFO DRV_NAME ": " DRV_COPYRIGHT "\n");
245 254
246 return 0; 255 return 0;
247} 256}
248 257
249static void __exit ieee80211_exit(void) 258static void __exit ieee80211_exit(void)
250{ 259{
260#ifdef CONFIG_IEEE80211_DEBUG
251 if (ieee80211_proc) { 261 if (ieee80211_proc) {
252 remove_proc_entry("debug_level", ieee80211_proc); 262 remove_proc_entry("debug_level", ieee80211_proc);
253 remove_proc_entry(DRV_NAME, proc_net); 263 remove_proc_entry(DRV_NAME, proc_net);
254 ieee80211_proc = NULL; 264 ieee80211_proc = NULL;
255 } 265 }
266#endif /* CONFIG_IEEE80211_DEBUG */
256} 267}
257 268
269#ifdef CONFIG_IEEE80211_DEBUG
258#include <linux/moduleparam.h> 270#include <linux/moduleparam.h>
259module_param(debug, int, 0444); 271module_param(debug, int, 0444);
260MODULE_PARM_DESC(debug, "debug output mask"); 272MODULE_PARM_DESC(debug, "debug output mask");
273#endif /* CONFIG_IEEE80211_DEBUG */
261 274
262module_exit(ieee80211_exit); 275module_exit(ieee80211_exit);
263module_init(ieee80211_init); 276module_init(ieee80211_init);
264#endif
265 277
266const char *escape_essid(const char *essid, u8 essid_len) 278const char *escape_essid(const char *essid, u8 essid_len)
267{ 279{