Subject: bin/9714: Wiconfig does not support -a option mentioned in the man page and usage
To: None <gnats-bugs@gnats.netbsd.org>
From: None <kivinen@ssh.fi>
List: netbsd-bugs
Date: 03/30/2000 17:51:30
>Number:         9714
>Category:       bin
>Synopsis:       Wiconfig does not support -a option mentioned in the man page and usage
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people (Utility Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Mar 30 17:48:00 2000
>Last-Modified:
>Originator:     Tero Kivinen
>Organization:
SSH Communications Security
>Release:        <NetBSD-current 2000-03-27
>Environment:
System: NetBSD kaakeli.ssh.fi 1.4W NetBSD 1.4W (KAAKELI) #0: Mon Mar 27 18:29:39 CST 2000 ztk@kaakeli.ssh.fi:/usr/src/sys/arch/i386/compile/KAAKELI i386


>Description:

wiconfig usage and man page says that it supports -a option, but
support for that is missing from the wiconfig program itself.

>How-To-Repeat:

wiconfig -i wi0 -a 1

>Fix:

*** wiconfig.c.orig	Fri Mar 31 08:46:12 2000
--- wiconfig.c	Thu Mar 30 23:39:31 2000
***************
*** 638,644 ****
  	}
  
  	while((ch = getopt(argc, argv,
! 	    "hoc:d:f:p:r:q:t:n:s:i:m:P:S:T:e:k:v:")) != -1) {
  		switch(ch) {
  		case 'o':
  			wi_dumpstats(iface);
--- 638,644 ----
  	}
  
  	while((ch = getopt(argc, argv,
! 	    "hoa:c:d:f:p:r:q:t:n:s:i:m:P:S:T:e:k:v:")) != -1) {
  		switch(ch) {
  		case 'o':
  			wi_dumpstats(iface);
***************
*** 694,699 ****
--- 694,703 ----
  			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 'T':

>Audit-Trail:
>Unformatted: