Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/wiconfig It enabled it to control roaming mode and ...
details: https://anonhg.NetBSD.org/src/rev/884626d83809
branches: trunk
changeset: 509883:884626d83809
user: ichiro <ichiro%NetBSD.org@localhost>
date: Tue May 15 04:16:21 2001 +0000
description:
It enabled it to control roaming mode and authentication mode.
diffstat:
usr.sbin/wiconfig/wiconfig.8 | 27 +++++++++++++++++++++++++--
usr.sbin/wiconfig/wiconfig.c | 18 +++++++++++-------
2 files changed, 36 insertions(+), 9 deletions(-)
diffs (132 lines):
diff -r 570c6f6f1e53 -r 884626d83809 usr.sbin/wiconfig/wiconfig.8
--- a/usr.sbin/wiconfig/wiconfig.8 Tue May 15 04:14:06 2001 +0000
+++ b/usr.sbin/wiconfig/wiconfig.8 Tue May 15 04:16:21 2001 +0000
@@ -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@localhost> 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 @@
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 @@
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 @@
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
diff -r 570c6f6f1e53 -r 884626d83809 usr.sbin/wiconfig/wiconfig.c
--- a/usr.sbin/wiconfig/wiconfig.c Tue May 15 04:14:06 2001 +0000
+++ b/usr.sbin/wiconfig/wiconfig.c Tue May 15 04:16:21 2001 +0000
@@ -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@localhost>. 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 @@
'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 @@
" [-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 @@
}
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;
/*
Home |
Main Index |
Thread Index |
Old Index