Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 24 Mar 2001 17:19:21 -0500
From:      "Satish Sambandham" <gte345e@prism.gatech.edu>
To:        <freebsd-net@FreeBSD.org>
Subject:   orinoco silver card
Message-ID:  <001f01c0b4b0$79dd3d80$0100a8c0@satish>

next in thread | raw e-mail | index | archive | help
    Ok, I found out that I cannot use a cardbus card for now, so trying to
figure out if I can use my orinoco siver 802.11b pcmcia card.  This card
initiallizes fine, I see a power led, and makes a startup beep.  Now I am
trying to figure out how to specify the encryption and other settings so it
can connect to the residential gateway access point (RG-1000). I read
somewhere to create the file listed below, change the approprite settings,
and then place it in /etc folder.  Now my question is, how does this file
get called or run? I tried running it manually by ./setup-wi0, but it would
return an error message saying " sed: option requires an argument -- e" and
the name of my access point not found. I know my access point works since i
can see if fine under win2k. If anyone can point me to good directions or
know any solution, it would be greatly appreciated!

Thanks.

#! /bin/sh
set -e

############################################################################
###
#
# Configuration variables:

# IFC is the wavelan interface to use (e.g., "wi0"); this must be
# specified:

IFC=wi0

# STATION_NAME is, well, the "station name", which is really only used
# by the WaveLan diagostic tools.  When using the tools (in a remote
# PC -- not this one), the tools will display this name when
# identifying the WaveLan card in this system.  Because it`s only used
# by remote diagnostic tools, it`s not essential to set SYSTEM_NAME.
# However, it is recommended that, if it is set, it be set to be the
# same as the hostname (otherwise, you`ll have to remember which
# station name goes with which hostname).
#
# Note, however, that the following uses `hostname` as the default.
# This may not work if this script is called at bootup (especially
# when called from pccard.conf), because the hostname may not yet have
# been set.  In this case, you should hardcode a value here.

STATION_NAME=`hostname | sed -e `s/..*$//``

# NETWORK_NAME is the name of the network that you wish to join (be a
# part of).  NETWORK_NAME must be set if you wish this system to talk
# to a WaveLan access point.  The NETWORK_NAME can be "ANY"
# (upper-case is required), in which case the card will talk to any
# access point; otherwise, NETWORK_NAME must be set to the same name
# used by the access point.  If you are using "ad-hoc mode" (not using
# an access point), which generally is the case with an home LAN, you
# do not need to set NETWORK_NAME (because ad-hoc mode ignores the
# NETWORK_NAME).

NETWORK_NAME=`ANY`

# MODE determines how the WaveLan card talks to other cards.  If you
# are using a WaveLan access point, you must set this to "1" (BSS
# mode), and you must also set a valid NETWORK_NAME (above), as the
# NETWORK_NAME must correspond to the name used by the access point.
# For LANs without an access point (the usual case for home LANs),
# MODE should be "3" (ad-hoc mode).

MODE=3   # 1 --> BSS, 3 --> ad-hoc mode

# CHANNEL is the frequency channel to use.  The default for cards sold
# in the USA and Europe (except France) is channel 3, 11 in France,
# and 14 in Japan.  Valid channels are:
#
# USA:    1-11
# Europe (except France):  1-13
# France:    10-13
# Japan:    14 (only -- unchangeable)
#
# See wicontrol(8) for more information.

CHANNEL=3  # Card default is channel 3

# KEY is the encryption key to use.  If KEY is blank/empty or not set,
# the encryption key is not set, and encryption will not be enabled.
# If a key is specified here, encryption will be enabled (this script
# does not support enabling/disabling encryption independently of key
# values).  Note that, although the wavelan supports up to four
# different keys (but only one can be used at any one time), only one
# key (key 1) is used here.
#
# Remember that all systems that talk to each other must use the same
# key.
#
# See wicontrol(8) for valid key values.

KEY=

#
# End of configuration variables.  Nothing should have to be changed
# past this point.
#
############################################################################
###

PATH="/usr/sbin:/usr/bin:/sbin:/bin:$PATH"

if [ "X$STATION_NAME" != "X" ]
then
    wicontrol -i $IFC -s "$STATION_NAME"
fi

wicontrol -i $IFC -p $MODE

if [ "X$NETWORK_NAME" != "X" ]
then
    wicontrol -i $IFC -n "$NETWORK_NAME"
fi

if [ "X$CHANNEL" != "X" ]
then
    wicontrol -i $IFC -f $CHANNEL
fi

if [ ( "X$KEY" != "X" ) -a
     ( "X$KEY" != "XNO" ) -a
     ( "X$KEY" != "Xno" ) -a
     ( "X$KEY" != "XNo" )
   ]
then
    wicontrol -i $IFC -k $KEY
    wicontrol -i $IFC -e 1
fi

exit 0




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-net" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?001f01c0b4b0$79dd3d80$0100a8c0>