Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-5]: src/usr.sbin/wiconfig Pullup 1.5 (approved by thorpej)



details:   https://anonhg.NetBSD.org/src/rev/ab8d73754195
branches:  netbsd-1-5
changeset: 488266:ab8d73754195
user:      sommerfeld <sommerfeld%NetBSD.org@localhost>
date:      Mon Jun 26 01:26:16 2000 +0000

description:
Pullup 1.5 (approved by thorpej)
Add support for the documented, but unimplemented, -a flag.

diffstat:

 usr.sbin/wiconfig/wiconfig.c |  10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)

diffs (41 lines):

diff -r df0185ce89b8 -r ab8d73754195 usr.sbin/wiconfig/wiconfig.c
--- a/usr.sbin/wiconfig/wiconfig.c      Mon Jun 26 00:48:38 2000 +0000
+++ b/usr.sbin/wiconfig/wiconfig.c      Mon Jun 26 01:26:16 2000 +0000
@@ -29,7 +29,7 @@
  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
  * THE POSSIBILITY OF SUCH DAMAGE.
  *
- *     $Id: wiconfig.c,v 1.5 2000/05/23 09:04:33 enami Exp $
+ *     $Id: wiconfig.c,v 1.5.4.1 2000/06/26 01:26:16 sommerfeld Exp $
  */
 
 #include <sys/types.h>
@@ -67,7 +67,7 @@
 static const char copyright[] = "@(#) Copyright (c) 1997, 1998, 1999\
        Bill Paul. All rights reserved.";
 static const char rcsid[] =
-       "@(#) $Id: wiconfig.c,v 1.5 2000/05/23 09:04:33 enami Exp $";
+       "@(#) $Id: wiconfig.c,v 1.5.4.1 2000/06/26 01:26:16 sommerfeld Exp $";
 #endif
 
 static void wi_getval          __P((char *, struct wi_req *));
@@ -642,7 +642,7 @@
        }
 
        while ((ch = getopt(argc, argv,
-           "hoc:d:f:p:r:q:t:n:s:i:m:P:S:T:e:k:v:")) != -1) {
+           "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);
@@ -652,6 +652,10 @@
                        if (iface == NULL)
                                iface = optarg;
                        break;
+               case 'a':
+                       wi_setword(iface, WI_RID_SYSTEM_SCALE, atoi(optarg));
+                       exit(0);
+                       break;
                case 'c':
                        wi_setword(iface, WI_RID_CREATE_IBSS, atoi(optarg));
                        exit(0);



Home | Main Index | Thread Index | Old Index