Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 1 Jun 2001 20:45:03 -0700
From:      Brooks Davis <brooks@one-eyed-alien.net>
To:        freebsd-bugs@freebsd.org
Cc:        freebsd-gnats-submit@freebsd.org
Subject:   Re: bin/21803: [PATCH] wicontrol's -a option mis-documented and not implemented
Message-ID:  <20010601204503.A3403@Odin.AC.HMC.Edu>

next in thread | raw e-mail | index | archive | help
Below is an updated version of the patch that applies to a May 30th
current.

-- Brooks

Index: wicontrol.8
===================================================================
RCS file: /home/ncvs/src/usr.sbin/wicontrol/wicontrol.8,v
retrieving revision 1.21
diff -u -r1.21 wicontrol.8
--- wicontrol.8	2001/02/07 13:45:30	1.21
+++ wicontrol.8	2001/06/02 03:42:52
@@ -38,7 +38,7 @@
 .Nd configure WaveLAN/IEEE devices
 .Sh SYNOPSIS
 .Nm
-.Fl i Ar iface Op Fl oa
+.Fl i Ar iface Op Fl o
 .Nm
 .Fl i Ar iface Fl t Ar tx rate
 .Nm
@@ -106,7 +106,7 @@
 .Sh OPTIONS
 The options are as follows:
 .Bl -tag -width Fl
-.It Fl i Ar iface Op Fl oa
+.It Fl i Ar iface Op Fl o
 Display the current settings of the specified WaveLAN/IEEE interface.
 This retrieves the current card settings from the driver and prints them
 out.
@@ -114,12 +114,7 @@
 .Fl o
 flag will cause
 .Nm
-to print out the statistics counters instead of the card settings. Using
-the additional
-.Fl a
-flag will cause
-.Nm
-to print out encryption keys as ascii characters instead of in hex.
+to print out the statistics counters instead of the card settings.
 Encryption keys are only displayed if wicontrol is run as root.
 .It Fl i Ar iface Fl t Ar tx rate
 Set the transmit rate of the specified interface.
Index: wicontrol.c
===================================================================
RCS file: /home/ncvs/src/usr.sbin/wicontrol/wicontrol.c,v
retrieving revision 1.16
diff -u -r1.16 wicontrol.c
--- wicontrol.c	2001/01/09 00:50:45	1.16
+++ wicontrol.c	2001/06/02 03:41:28
@@ -715,7 +715,7 @@
 	opterr = 1;
 		
 	while((ch = getopt(argc, argv,
-	    "hoc:d:e:f:i:k:p:r:q:t:n:s:m:v:P:S:T:ZC")) != -1) {
+	    "a:hoc:d:e:f:i:k:p:r:q:t:n:s:m:v:P:S:T:ZC")) != -1) {
 		switch(ch) {
 		case 'Z':
 #ifdef WICACHE
@@ -795,6 +795,10 @@
 			break;
 		case 'P':
 			wi_setword(iface, WI_RID_PM_ENABLED, atoi(optarg));
+			exit(0);
+			break;
+		case 'a':
+			wi_setword(iface, WI_RID_SYSTEM_SCALE, atoi(optarg));
 			exit(0);
 			break;
 		case 'v':

-- 
Any statement of the form "X is the one, true Y" is FALSE.
PGP fingerprint 655D 519C 26A7 82E7 2529  9BF0 5D8E 8BE9 F238 1AD4

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010601204503.A3403>