~ubuntu-branches/debian/sid/ndiswrapper/sid

« back to all changes in this revision

Viewing changes to driver/wrapper.c

  • Committer: Package Import Robot
  • Author(s): Julian Andres Klode
  • Date: 2011-11-25 16:45:32 UTC
  • mto: (1.3.14)
  • mto: This revision was merged to the branch mainline in revision 14.
  • Revision ID: package-import@ubuntu.com-20111125164532-t3el9iq2brq77sl9
Tags: upstream-1.57~rc1
ImportĀ upstreamĀ versionĀ 1.57~rc1

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
int proc_uid, proc_gid;
24
24
int hangcheck_interval;
25
25
static char *utils_version = UTILS_VERSION;
26
 
 
27
 
#if defined(DEBUG) && (DEBUG > 0)
28
26
int debug = DEBUG;
29
 
#else
30
 
int debug = 0;
31
 
#endif
32
27
 
33
 
WRAP_MODULE_PARM_STRING(if_name, 0400);
 
28
module_param(if_name, charp, 0400);
34
29
MODULE_PARM_DESC(if_name, "Network interface name or template "
35
30
                 "(default: wlan%d)");
36
 
WRAP_MODULE_PARM_INT(proc_uid, 0600);
 
31
module_param(proc_uid, int, 0600);
37
32
MODULE_PARM_DESC(proc_uid, "The uid of the files created in /proc "
38
33
                 "(default: 0).");
39
 
WRAP_MODULE_PARM_INT(proc_gid, 0600);
 
34
module_param(proc_gid, int, 0600);
40
35
MODULE_PARM_DESC(proc_gid, "The gid of the files created in /proc "
41
36
                 "(default: 0).");
42
 
WRAP_MODULE_PARM_INT(debug, 0600);
 
37
module_param(debug, int, 0600);
43
38
MODULE_PARM_DESC(debug, "debug level");
44
39
 
45
40
/* 0 - default value provided by NDIS driver,
46
41
 * positive value - force hangcheck interval to that many seconds
47
42
 * negative value - disable hangcheck
48
43
 */
49
 
WRAP_MODULE_PARM_INT(hangcheck_interval, 0600);
 
44
module_param(hangcheck_interval, int, 0600);
50
45
MODULE_PARM_DESC(hangcheck_interval, "The interval, in seconds, for checking"
51
46
                 " if driver is hung. (default: 0)");
52
47
 
53
 
WRAP_MODULE_PARM_STRING(utils_version, 0400);
 
48
module_param(utils_version, charp, 0400);
54
49
MODULE_PARM_DESC(utils_version, "Compatible version of utils "
55
50
                 "(read only: " UTILS_VERSION ")");
56
51