Subject: port-i386/10634: 802.11 cards not configured
To: None <gnats-bugs@gnats.netbsd.org>
From: Ed Gould <ed@left.wing.org>
List: netbsd-bugs
Date: 07/19/2000 09:38:34
>Number:         10634
>Category:       port-i386
>Synopsis:       802.11 cards not configured
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    port-i386-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jul 19 09:39:01 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Ed Gould
>Release:        snapshot 20000620-1.5
>Organization:
--
Ed Gould	 Palo Alto Advanced Development	 Compaq Computer Corp.
+1 650 853 2108	 ed@pa.dec.com			 130 Lytton Avenue
		 ed.gould@compaq.com		 Palo Alto, CA 94301
>Environment:
System: NetBSD rome 1.5B NetBSD 1.5B (ROME) #58: Sun Jul 16 22:51:16 PDT 2000 ed@rome:/usr/src/sys/arch/i386/compile/ROME i386


>Description:
	There is no code to invoke wiconfig to configure 802.11 cards.

>How-To-Repeat:
	Try to use DHCP or any networking via a WaveLAN 802.11 card in a
	BSS environment.

>Fix:
--- /etc/rc.d-netbsd/network  Tue Jun 20 12:51:47 2000
+++ /etc/rc.d/network   Mon Jul 17 23:03:20 2000
@@ -89,8 +89,18 @@
        #       inet6 fec0::1 prefixlen 64 alias
        #
        if [ "$net_interfaces" != NO ]; then
+               all="`ifconfig -l`"
+               # if there are WaveLAN interfaces, set them up
+               echo -n 'Configuring WaveLAN interfaces:'
+               for int in $all; do
+                       if echo $int | grep -q ^wi; then
+                               echo -n " $int"
+                               wiconfig $int -p 1
+                       fi
+               done
+               echo "."
                if checkyesno auto_ifconfig; then
-                       tmp="`ifconfig -l`"
+                       tmp="$all"
                else
                        tmp="$net_interfaces"
                fi

>Release-Note:
>Audit-Trail:
>Unformatted: