Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-4]: src/usr.sbin/wiconfig Pull up revision 1.6 (requested by so...
details: https://anonhg.NetBSD.org/src/rev/92263c0c72f0
branches: netbsd-1-4
changeset: 470677:92263c0c72f0
user: he <he%NetBSD.org@localhost>
date: Tue Jun 27 15:02:23 2000 +0000
description:
Pull up revision 1.6 (requested by sommerfeld):
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 38b04ac393fa -r 92263c0c72f0 usr.sbin/wiconfig/wiconfig.c
--- a/usr.sbin/wiconfig/wiconfig.c Tue Jun 27 14:41:04 2000 +0000
+++ b/usr.sbin/wiconfig/wiconfig.c Tue Jun 27 15:02:23 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.4.2.2 2000/05/10 19:30:00 he Exp $
+ * $Id: wiconfig.c,v 1.4.2.3 2000/06/27 15:02:23 he 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.4.2.2 2000/05/10 19:30:00 he Exp $";
+ "@(#) $Id: wiconfig.c,v 1.4.2.3 2000/06/27 15:02:23 he Exp $";
#endif
static void wi_getval __P((char *, struct wi_req *));
@@ -643,7 +643,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);
@@ -653,6 +653,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