2
* Copyright (C) 2003-2005 Pontus Fuchs, Giridhar Pemmasani
4
* This program is free software; you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License as published by
6
* the Free Software Foundation; either version 2 of the License, or
7
* (at your option) any later version.
9
* This program is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
22
char *if_name = "wlan%d";
23
int proc_uid, proc_gid;
24
int hangcheck_interval;
25
static char *utils_version = UTILS_VERSION;
27
#if defined(DEBUG) && (DEBUG > 0)
33
WRAP_MODULE_PARM_STRING(if_name, 0400);
34
MODULE_PARM_DESC(if_name, "Network interface name or template "
36
WRAP_MODULE_PARM_INT(proc_uid, 0600);
37
MODULE_PARM_DESC(proc_uid, "The uid of the files created in /proc "
39
WRAP_MODULE_PARM_INT(proc_gid, 0600);
40
MODULE_PARM_DESC(proc_gid, "The gid of the files created in /proc "
42
WRAP_MODULE_PARM_INT(debug, 0600);
43
MODULE_PARM_DESC(debug, "debug level");
45
/* 0 - default value provided by NDIS driver,
46
* positive value - force hangcheck interval to that many seconds
47
* negative value - disable hangcheck
49
WRAP_MODULE_PARM_INT(hangcheck_interval, 0600);
50
MODULE_PARM_DESC(hangcheck_interval, "The interval, in seconds, for checking"
51
" if driver is hung. (default: 0)");
53
WRAP_MODULE_PARM_STRING(utils_version, 0400);
54
MODULE_PARM_DESC(utils_version, "Compatible version of utils "
55
"(read only: " UTILS_VERSION ")");
57
MODULE_AUTHOR("ndiswrapper team <ndiswrapper-general@lists.sourceforge.net>");
58
#ifdef MODULE_DESCRIPTION
59
MODULE_DESCRIPTION("NDIS wrapper driver");
62
MODULE_VERSION(DRIVER_VERSION);
64
MODULE_LICENSE("GPL");
66
static void module_cleanup(void)
82
static int __init wrapper_init(void)
84
printk(KERN_INFO "%s version %s loaded (smp=%s, preempt=%s)\n",
85
DRIVER_NAME, DRIVER_VERSION,
92
#ifdef CONFIG_PREEMPT_RT
94
#elif defined(CONFIG_PREEMPT)
101
if (wrapmem_init() || ntoskernel_init() || crt_init() ||
102
rtl_init() || ndis_init() || wrapndis_init() ||
106
wrap_procfs_init() || loader_init()) {
108
ERROR("%s: initialization failed", DRIVER_NAME);
114
static void __exit wrapper_exit(void)
120
module_init(wrapper_init);
121
module_exit(wrapper_exit);