1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-05 12:56:08 +00:00

Actually implement -a as documented since import (set access point density).

Remove documentation for short-lived usage as "print keys in ASCII."

PR:		bin/21803
MFC after:	1 week
This commit is contained in:
Brooks Davis 2001-06-26 00:12:58 +00:00
parent 362967568a
commit fa8d8b2e04
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=78789
2 changed files with 8 additions and 9 deletions

View File

@ -38,7 +38,7 @@
.Nd configure WaveLAN/IEEE devices .Nd configure WaveLAN/IEEE devices
.Sh SYNOPSIS .Sh SYNOPSIS
.Nm .Nm
.Fl i Ar iface Op Fl oa .Fl i Ar iface Op Fl o
.Nm .Nm
.Fl i Ar iface Fl t Ar tx rate .Fl i Ar iface Fl t Ar tx rate
.Nm .Nm
@ -106,7 +106,7 @@ as default.
.Sh OPTIONS .Sh OPTIONS
The options are as follows: The options are as follows:
.Bl -tag -width Fl .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. Display the current settings of the specified WaveLAN/IEEE interface.
This retrieves the current card settings from the driver and prints them This retrieves the current card settings from the driver and prints them
out. out.
@ -114,12 +114,7 @@ Using the additional
.Fl o .Fl o
flag will cause flag will cause
.Nm .Nm
to print out the statistics counters instead of the card settings. Using to print out the statistics counters instead of the card settings.
the additional
.Fl a
flag will cause
.Nm
to print out encryption keys as ascii characters instead of in hex.
Encryption keys are only displayed if wicontrol is run as root. Encryption keys are only displayed if wicontrol is run as root.
.It Fl i Ar iface Fl t Ar tx rate .It Fl i Ar iface Fl t Ar tx rate
Set the transmit rate of the specified interface. Set the transmit rate of the specified interface.

View File

@ -715,7 +715,7 @@ int main(argc, argv)
opterr = 1; opterr = 1;
while((ch = getopt(argc, argv, 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) { switch(ch) {
case 'Z': case 'Z':
#ifdef WICACHE #ifdef WICACHE
@ -797,6 +797,10 @@ int main(argc, argv)
wi_setword(iface, WI_RID_PM_ENABLED, atoi(optarg)); wi_setword(iface, WI_RID_PM_ENABLED, atoi(optarg));
exit(0); exit(0);
break; break;
case 'a':
wi_setword(iface, WI_RID_SYSTEM_SCALE, atoi(optarg));
exit(0);
break;
case 'v': case 'v':
modifier = atoi(optarg); modifier = atoi(optarg);
modifier--; modifier--;