It enabled it to control roaming mode and authentication mode.
This commit is contained in:
parent
2970b99ac9
commit
a420303a55
|
@ -1,4 +1,4 @@
|
|||
.\" $NetBSD: wiconfig.8,v 1.14 2001/04/03 11:42:40 wiz Exp $
|
||||
.\" $NetBSD: wiconfig.8,v 1.15 2001/05/15 04:16:21 ichiro Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1997, 1998, 1999
|
||||
.\" Bill Paul <wpaul@ctr.columbia.edu> All rights reserved.
|
||||
|
@ -85,12 +85,18 @@
|
|||
.Op Fl f Ar frequency
|
||||
.Ek
|
||||
.Bk -words
|
||||
.Op Fl A Ar 0|1
|
||||
.Ek
|
||||
.Bk -words
|
||||
.Op Fl M Ar 0|1
|
||||
.Ek
|
||||
.Bk -words
|
||||
.Op Fl P Ar 0|1
|
||||
.Ek
|
||||
.Bk -words
|
||||
.Op Fl R Ar 1|3
|
||||
.Ek
|
||||
.Bk -words
|
||||
.Op Fl S Ar max sleep duration
|
||||
.Ek
|
||||
.Bk -words
|
||||
|
@ -197,7 +203,7 @@ for the specified interface. The
|
|||
is used for diagnostic purposes. The Lucent WaveMANAGER software can
|
||||
poll the names of remote hosts.
|
||||
.It Fl c Ar 0|1
|
||||
Allow the station to create a service set (IBSS). Permitted values
|
||||
[Lucent only] Allow the station to create a service set (IBSS). Permitted values
|
||||
are 0 (don't create IBSS) and 1 (enable creation of IBSS). The default
|
||||
is 0.
|
||||
.Pp
|
||||
|
@ -278,6 +284,16 @@ channel is 11. For NICs sold in Japan, the default channel is 14, and
|
|||
it is the only available channel for pre-11Mbps NICs.
|
||||
Note that two stations must be set to the same channel in order to
|
||||
communicate.
|
||||
.It Fl A Ar 0|1
|
||||
[Prism2 only] Sets the authentication type for a given interface.
|
||||
Permitted values are
|
||||
.Ar 1
|
||||
(Open System Authentication) or
|
||||
.Ar 2
|
||||
(Shared Key Authentication). The default is 1.
|
||||
.Pp
|
||||
Note: It is not valid to enable Shared Key Authentication
|
||||
when no valid WEP keys have been defined.
|
||||
.It Fl M Ar 0|1
|
||||
Enable or disable
|
||||
.Dq microwave oven robustness
|
||||
|
@ -293,6 +309,13 @@ is only implemented in Lucent WavePOINT firmware version 2.03 or
|
|||
later, and in WaveLAN PCMCIA adapter firmware 2.00 or later. Older
|
||||
revisions will silently ignore the power management setting. Legal
|
||||
values for this parameter are 0 (off) and 1 (on).
|
||||
.It Fl R Ar 1|3
|
||||
Enable or disable roaming function on a given interface.
|
||||
The legal values are
|
||||
.Ar 1
|
||||
(Roaming handled by firmware) and
|
||||
.Ar 3
|
||||
(Roaming Disabled). The default is 1.
|
||||
.It Fl S Ar max sleep interval
|
||||
Specify the sleep interval to use when power management is enabled.
|
||||
The
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
/* $NetBSD: wiconfig.c,v 1.12 2001/05/06 03:28:57 ichiro Exp $ */
|
||||
|
||||
/* $NetBSD: wiconfig.c,v 1.13 2001/05/15 04:16:21 ichiro Exp $ */
|
||||
/*
|
||||
* Copyright (c) 1997, 1998, 1999
|
||||
* Bill Paul <wpaul@ctr.columbia.edu>. All rights reserved.
|
||||
|
@ -69,7 +68,7 @@
|
|||
static const char copyright[] = "@(#) Copyright (c) 1997, 1998, 1999\
|
||||
Bill Paul. All rights reserved.";
|
||||
static const char rcsid[] =
|
||||
"@(#) $Id: wiconfig.c,v 1.12 2001/05/06 03:28:57 ichiro Exp $";
|
||||
"@(#) $Id: wiconfig.c,v 1.13 2001/05/15 04:16:21 ichiro Exp $";
|
||||
#endif
|
||||
|
||||
struct wi_table {
|
||||
|
@ -451,20 +450,24 @@ static struct wi_table wi_table[] = {
|
|||
'r', "RTS threshold" },
|
||||
{ WI_RID_CREATE_IBSS, WI_BOOL, "Create IBSS:\t\t\t\t",
|
||||
'c', "create ibss" },
|
||||
{ WI_RID_MICROWAVE_OVEN, WI_WORDS, "Microwave oven robustness:\t\t",
|
||||
'M', "microwave oven robustness enabled" },
|
||||
{ WI_RID_ROAMING_MODE, WI_WORDS, "Roaming mode(1:firm,3:disable):\t\t",
|
||||
'R', "roaming mode" },
|
||||
{ WI_RID_SYSTEM_SCALE, WI_WORDS, "Access point density:\t\t\t",
|
||||
'a', "system scale" },
|
||||
{ WI_RID_PM_ENABLED, WI_WORDS, "Power Mgmt (1=on, 0=off):\t\t",
|
||||
'P', "power management enabled" },
|
||||
{ WI_RID_MAX_SLEEP, WI_WORDS, "Max sleep time:\t\t\t\t",
|
||||
{ WI_RID_MAX_SLEEP, WI_WORDS, "Max sleep time (msec):\t\t\t",
|
||||
'S', "max sleep duration" },
|
||||
{ WI_RID_MICROWAVE_OVEN, WI_WORDS, "Microwave oven robustness:\t\t",
|
||||
'M', "microwave oven robustness enabled" },
|
||||
{ 0, WI_NONE }
|
||||
};
|
||||
|
||||
static struct wi_table wi_crypt_table[] = {
|
||||
{ WI_RID_ENCRYPTION, WI_BOOL, "WEP encryption:\t\t\t\t",
|
||||
'e', "encryption" },
|
||||
{ WI_RID_AUTH_CNTL, WI_WORDS, "Authentication type \n(1=OpenSys, 2=Shared Key):\t\t",
|
||||
'A', "authentication type" },
|
||||
{ WI_RID_TX_CRYPT_KEY, WI_WORDS, "TX encryption key:\t\t\t" },
|
||||
{ WI_RID_DEFLT_CRYPT_KEYS, WI_KEYSTRUCT, "Encryption keys:\t\t\t" },
|
||||
{ 0, WI_NONE }
|
||||
|
@ -640,6 +643,7 @@ usage()
|
|||
" [-c 0|1] [-q SSID] [-p port type] [-a access point density]\n"
|
||||
" [-m MAC address] [-d max data length] [-r RTS threshold]\n"
|
||||
" [-f frequency] [-M 0|1] [-P 0|1] [-S max sleep duration]\n"
|
||||
" [-A 0|1 ] [-R 1|3]\n"
|
||||
,
|
||||
getprogname());
|
||||
exit(1);
|
||||
|
@ -672,7 +676,7 @@ int main(argc, argv)
|
|||
}
|
||||
|
||||
while ((ch = getopt(argc, argv,
|
||||
"a:c:d:e:f:hi:k:m:n:op:q:r:s:t:M:S:P:T:")) != -1) {
|
||||
"a:c:d:e:f:hi:k:m:n:op:q:r:s:t:A:M:S:P:R:T:")) != -1) {
|
||||
if (ch != 'i')
|
||||
dumpinfo = 0;
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue