Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 6 Oct 2000 16:50:57 -0700 (PDT)
From:      brooks@one-eyed-alien.net
To:        FreeBSD-gnats-submit@freebsd.org
Cc:        wpaul@freebsd.org
Subject:   bin/21803: [PATCH] wicontrol's -a option mis-documented and not implemented
Message-ID:  <200010062350.e96Novl02937@minya.sea.one-eyed-alien.net>

next in thread | raw e-mail | index | archive | help

>Number:         21803
>Category:       bin
>Synopsis:       [PATCH] wicontrol's -a option mis-documented and not implemented
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Oct 06 17:00:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Brooks Davis
>Release:        FreeBSD 5.0-CURRENT i386
>Organization:
The Aerospace Corporation
>Environment:

FreeBSD minya 5.0-CURRENT FreeBSD 5.0-CURRENT #0: Fri Oct  6 09:32:24 PDT 2000     root@minya:/usr/obj/usr/src/sys/MINYA  i386

>Description:

The -a option (change access point density) is not implemented in
wicontrol.  The a flag was also temprorarily stolen for another purpose
and that usage is still documented in the manpage.

>How-To-Repeat:

man wicontrol
wicontrol -i wi0 -a 2

>Fix:

This patch removes documentation of the bogus -a option and implements
the other one.

Index: wicontrol.8
===================================================================
RCS file: /home/ncvs/src/usr.sbin/wicontrol/wicontrol.8,v
retrieving revision 1.17
diff -u -r1.17 wicontrol.8
--- wicontrol.8	2000/09/21 00:25:07	1.17
+++ wicontrol.8	2000/10/06 23:41:30
@@ -38,7 +38,7 @@
 .Nd configure WaveLAN/IEEE devices
 .Sh SYNOPSIS
 .Nm wicontrol
-.Fl i Ar iface Op Fl oa
+.Fl i Ar iface Op Fl o
 .Nm wicontrol
 .Fl i Ar iface Fl t Ar tx rate
 .Nm wicontrol
@@ -105,7 +105,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.
@@ -113,12 +113,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.13
diff -u -r1.13 wicontrol.c
--- wicontrol.c	2000/09/21 00:25:07	1.13
+++ wicontrol.c	2000/10/06 23:40:08
@@ -698,7 +698,7 @@
 	int			modifier = 0;
 
 	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
@@ -781,6 +781,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':


>Release-Note:
>Audit-Trail:
>Unformatted:


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?200010062350.e96Novl02937>