From fanf@dotat.at  Mon Oct 23 03:41:47 2000
Return-Path: <fanf@dotat.at>
Received: from hand.dotat.at (unknown [212.85.16.2])
	by hub.freebsd.org (Postfix) with ESMTP id 1A0BD37B479
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 23 Oct 2000 03:41:46 -0700 (PDT)
Received: from fanf by hand.dotat.at with local (Exim 3.15 #3)
	id 13nf2z-0000Ch-00
	for FreeBSD-gnats-submit@freebsd.org; Mon, 23 Oct 2000 10:41:41 +0000
Message-Id: <E13nf2z-0000Ch-00@hand.dotat.at>
Date: Mon, 23 Oct 2000 10:41:41 +0000
From: Tony Finch <dot@dotat.at>
Sender: fanf@dotat.at
Reply-To: Tony Finch <dot@dotat.at>
To: FreeBSD-gnats-submit@freebsd.org
Subject: make wicontrol default to wi0
X-Send-Pr-Version: 3.2

>Number:         22241
>Category:       bin
>Synopsis:       make wicontrol default to wi0
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    joe
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Oct 23 03:50:00 PDT 2000
>Closed-Date:    Mon Nov 6 11:34:24 PST 2000
>Last-Modified:  Mon Nov 06 11:35:00 PST 2000
>Originator:     Tony Finch <dot@dotat.at>
>Release:        FreeBSD 4.1.1-STABLE-20001015 i386
>Organization:
dotat
>Environment:


>Description:

`wicontrol` requires a -i argument, although in the vast majority of cases
it is -i wi0. I think that should be a default.

>How-To-Repeat:


>Fix:


Index: wicontrol.c
===================================================================
RCS file: /home/ncvs/src/usr.sbin/wicontrol/wicontrol.c,v
retrieving revision 1.9.2.2
diff -u -r1.9.2.2 wicontrol.c
--- wicontrol.c	2000/09/21 00:26:59	1.9.2.2
+++ wicontrol.c	2000/10/23 10:36:26
@@ -795,7 +795,7 @@
 	}
 
 	if (iface == NULL)
-		usage(p);
+		iface = "wi0";
 
 	if (key != NULL) {
 		wi_setkeys(iface, key, modifier);

>Release-Note:
>Audit-Trail:

From: Josef Karthauser <joe@pavilion.net>
To: Tony Finch <dot@dotat.at>
Cc: FreeBSD-gnats-submit@FreeBSD.org
Subject: Re: bin/22241: make wicontrol default to wi0
Date: Sat, 28 Oct 2000 17:01:48 +0100

 On Mon, Oct 23, 2000 at 10:41:41AM +0000, Tony Finch wrote:
 > 
 > >Description:
 > 
 > `wicontrol` requires a -i argument, although in the vast majority of cases
 > it is -i wi0. I think that should be a default.
 
 Ahha!  This would fix the problem that occurs when you run wiconfig
 without an interface specified. :)  Excellent.
 
 I'll commit it.
 
 Joe
 -- 
 Josef Karthauser	FreeBSD: How many times have you booted today?
 Technical Manager	Viagra for your server (http://www.uk.freebsd.org)
 Pavilion Internet plc.  [joe@pavilion.net, joe@uk.freebsd.org, joe@tao.org.uk]
 
State-Changed-From-To: open->suspended 
State-Changed-By: joe 
State-Changed-When: Sat Oct 28 09:20:15 PDT 2000 
State-Changed-Why:  
I've committed a fix for this to -current. 


Responsible-Changed-From-To: freebsd-bugs->joe 
Responsible-Changed-By: joe 
Responsible-Changed-When: Sat Oct 28 09:20:15 PDT 2000 
Responsible-Changed-Why:  
I'm in charge now :) 
. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=22241 
State-Changed-From-To: suspended->closed 
State-Changed-By: joe 
State-Changed-When: Mon Nov 6 11:34:24 PST 2000 
State-Changed-Why:  
This has been MFC'd to -stable. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=22241 
>Unformatted:
