From owner-freebsd-mobile Thu Nov 16 13:47:32 2000 Delivered-To: freebsd-mobile@freebsd.org Received: from moek.pir.net (moek.pir.net [209.192.237.190]) by hub.freebsd.org (Postfix) with ESMTP id 8BD5637B4C5 for ; Thu, 16 Nov 2000 13:47:28 -0800 (PST) Received: from pir by moek.pir.net with local (Exim) id 13wWsR-00003t-00 for mobile@freebsd.org; Thu, 16 Nov 2000 16:47:27 -0500 Date: Thu, 16 Nov 2000 16:47:26 -0500 From: Peter Radcliffe To: mobile@freebsd.org Subject: Re: wi0 and wicontrol Message-ID: <20001116164726.K22442@pir.net> Mail-Followup-To: mobile@freebsd.org References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from bauerp@bigfoot.com on Thu, Nov 16, 2000 at 03:39:07PM -0600 X-fish: < Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org bauerp probably said: > wicontrol -i wi0 -n "" > wicontrol -i wi0 -p -o > wicontrol -i wi0 -e 1 > wicontrol -i wi0 -k key1 -v 1 > wicontrol -i wi0 -k key2 -v 2 > wicontrol -i wi0 -k key3 -v 3 > wicontrol -i wi0 -k key4 -v 4 I tend to add these to pccard_ether. Currently I use; if expr "//${interface}" : '^//wi[0-9]' > /dev/null ; then # we have a wavelan card. do we have any configs for it ? # tx rate to use eval wi_txrate="\$wi_txrate_${interface}" if [ -n "$wi_txrate" -a "x$wi_txrate" != "xNO" ]; then wicontrol -i $interface -t "$wi_txrate" fi # name of the service set the station wants to join eval wi_networkname=\$wi_networkname_${interface} if [ -n "$wi_networkname" -a "x$wi_networkname" != "xNO" ]; then if [ "x$wi_networkname" = "xANY" ]; then wicontrol -i $interface -n "" else wicontrol -i $interface -n "$wi_networkname" fi fi # the name of the station eval wi_stationname=\$wi_stationname_${interface} if [ -n "$wi_stationname" -a "x$wi_stationname" != "xNO" ]; then wicontrol -i $interface -s "$wi_stationname" fi # allow creation of a service set (yes/no) eval wi_ssid=\$wi_ssid_${interface} if [ -n "$wi_ssid" -a "x$wi_ssid" != "xNO" ]; then wicontrol -i $interface -c 1 fi # name of the service set to create eval wi_ssidname=\$wi_ssidname_${interface} if [ -n "$wi_ssidname" -a "x$wi_ssidname" != "xNO" ]; then wicontrol -i $interface -q "$wi_ssidname" fi # port type eval wi_porttype=\$wi_porttype_${interface} if [ -n "$wi_porttype" -a "x$wi_porttype" != "xNO" ]; then wicontrol -i $interface -p "$wi_porttype" fi # key 1-4 to set up wep for num in 1 2 3 4 ; do eval wi_wepkeyval=\$wi_wepkey${num}_${interface} if [ -n "$wi_wepkeyval" -a "x$wi_wepkeyval" != "xNO" ]; then if [ "x$wi_wepkeyval" = "xEMPTY" ]; then wicontrol -i $interface -k "" -v $num else wicontrol -i $interface -k "$wi_wepkeyval" -v $num fi fi done # which wep key to use eval wi_wepkey=\$wi_wepkey_${interface} if [ -n "$wi_wepkey" -a "x$wi_wepkey" != "xNO" ]; then wicontrol -i $interface -T "$wi_wepkey" fi # wep encryption eval wi_wep=\$wi_wep_${interface} if [ -n "$wi_wep" -a "x$wi_wep" != "xNO" ]; then wicontrol -i $interface -e 1 fi # what frequency to use eval wi_frequency=\$wi_frequency_${interface} if [ -n "$wi_frequency" -a "x$wi_frequency" != "xNO" ]; then wicontrol -i $interface -f "$wi_frequency" fi # use power management eval wi_pm=\$wi_pm_${interface} if [ -n "$wi_pm" -a "x$wi_pm" != "xNO" ]; then wicontrol -i $interface -P 1 fi # what timeout to use with power management eval wi_sleep=\$wi_sleep_${interface} if [ -n "$wi_sleep" -a "x$wi_sleep" != "xNO" ]; then wicontrol -i $interface -S "$wi_sleep" fi fi and you then add config options to /etc/rc.conf as with everything else. It can take a second or so to go through and config them all, though. > dhclient You should do DHCP through the standard configs - pccard_ether="DHCP" ? (I don't use the 4.* pccard_ether scripts, I still use hacked around PAO bases pccard_ether* so don't remmeber exactly). P. -- pir pir@pir.net pir@net.tufts.edu To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message