Subject: Re: port-i386/10634: 802.11 cards not configured
To: None <netbsd-bugs@netbsd.org>
From: Bernd Ernesti <netbsd@arresum.inka.de>
List: netbsd-bugs
Date: 07/19/2000 21:47:52
On Wed Jul 19 20:54:30 2000, John Hawkinson wrote:
> 
> | 	  There is no code to invoke wiconfig to configure 802.11 cards.
> 
> Not everyone uses 802.11 cards in BSS mode. The driver defaults to ad hoc
> mode, presumably because the driver author believed that reasonable.
> It would be silly to have rc.d unilaterally override that
> default with another default.
> 
> Some degree of configuration is required.

Just create a /etc/netstart.local:

#!/bin/sh

ifaces=`/sbin/ifconfig -l`

case "$1" in
	start)
		for tmp in $ifaces; do
			case "$tmp" in
			wi*|awi*)
				/usr/sbin/wiconfig $tmp -p 1
				;;
			*)
				;;
			esac
		done
	;;
easc

Bernd