Updated the documentation.
This commit is contained in:
parent
775d8fef6b
commit
198d740605
5
README
5
README
|
@ -77,7 +77,10 @@ Build Instructions:
|
|||
file, c) insert your card. For more information see the file(s)
|
||||
linux-wlan-ng*/doc/config.*
|
||||
|
||||
8) Edit your network.opts file to set up your IP settings.
|
||||
8) Edit your network.opts file to set up your IP settings. Note: for a
|
||||
station, the SSID you're connecting to will be appended to the
|
||||
current pcmcia scheme name. You can use this to have different
|
||||
IP setups for different wireless LANs you connect to (e.g. home vs. work).
|
||||
|
||||
9) Restart pcmcia-cs with the command:
|
||||
|
||||
|
|
|
@ -29,7 +29,7 @@ file:
|
|||
|
||||
Then configure the collection and display of your kernel output. This
|
||||
is usually done using syslog. Here are the relevant entries from the
|
||||
/etc/syslog.conf file on one of my test machines:
|
||||
/etc/syslog.conf file on one of our test machines:
|
||||
|
||||
kern.* /var/log/kernel
|
||||
kern.* /dev/tty9
|
||||
|
|
|
@ -2,21 +2,23 @@ doc/config.linux-wlan-ng
|
|||
|
||||
Copyright (C) 2000 AbsoluteValue Software, Inc. All Rights Reserved.
|
||||
|
||||
Here we describe a little more of the detail behind configuring the
|
||||
1. Summary
|
||||
|
||||
This document describes a little more of the detail behind configuring the
|
||||
linux-wlan system.
|
||||
|
||||
2. Installed Componenents
|
||||
|
||||
The linux-wlan-ng package consists of the following components:
|
||||
|
||||
p80211.o Kernel module for 802.11 services
|
||||
prism2sta_cs.o Kernel module for the Prism2 PCMCIA device
|
||||
driver.
|
||||
wlanctli-ng User-mode utility for sending commands to
|
||||
wlanctl-ng User-mode utility for sending commands to
|
||||
802.11 services and MAC-specific drivers.
|
||||
wland User-mode daemon for receiving and handling
|
||||
events from 802.11 services and MAC-specific
|
||||
drivers (not used in this version).
|
||||
wlandump User-mode utility for viewing MAC-level 802.11
|
||||
traffic.
|
||||
/etc/pcmcia/wlan-ng* PCMCIA event and configuration scripts
|
||||
|
||||
*prism2dl This utility is used for loading firmware
|
||||
|
@ -27,36 +29,129 @@ The linux-wlan-ng package consists of the following components:
|
|||
manufacturer.
|
||||
|
||||
When a 'make install' is performed, the modules are copied to the
|
||||
/usr/lib/modules/<kernelver>/net and /usr/lib/modules/pcmcia
|
||||
directory, the user-mode utilities are copied to /sbin, and the
|
||||
contents of linux-wlan-ng/etc/pcmcia are copied to the /etc/pcmcia
|
||||
directory. The pcmcia config files are altered to include a reference
|
||||
to the wlan-ng.conf file containing the information cardmgr uses to
|
||||
match card CIS information to specific device drivers at card
|
||||
insertion time.
|
||||
/usr/lib/modules/<kernelver>/net and /usr/lib/modules/pcmcia directory,
|
||||
the user-mode utilities are copied to /sbin, and the contents of
|
||||
linux-wlan-ng/etc/pcmcia are copied to the /etc/pcmcia directory. If
|
||||
necessary, the pcmcia config files are altered to include a reference to
|
||||
the wlan-ng.conf file containing the information cardmgr uses to match
|
||||
card CIS information to specific device drivers at card insertion time.
|
||||
|
||||
NOTE: It is very important that you restart your pcmcia services after
|
||||
installing linux-wlan-ng. cardmgr will not recognize the information
|
||||
in the wlan-ng.conf file until after it has been restarted.
|
||||
|
||||
|
||||
3. Configuration Variables
|
||||
|
||||
To configure your installation for use, it will probably be necessary
|
||||
to edit the /etc/pcmcia/wlan-ng.opts file. This file contains a
|
||||
collection of variable assignments that are used by the wlan-ng script
|
||||
to intialize your card at insertion time. To determine which
|
||||
variables you need to set and what you want to set them to, you must
|
||||
first determine what kind of installation you are doing: a Station
|
||||
(STA) or an Access Point (AP).
|
||||
to intialize your card at insertion time. The variables are broken
|
||||
into groups: ENABLE, DOWNLOAD, USER MIB, WEP, STA, and AP START.
|
||||
|
||||
WLAN_ENABLE=y
|
||||
Many of the choices involved in choosing configuration variable
|
||||
settings are dependent on whether you are setting up your system as a
|
||||
Station (STA) or an Access Point (AP). STA configuration is most
|
||||
common. If you are using a mobile station that will connect to one or
|
||||
more APs, STA configuration is all you will need.
|
||||
|
||||
To configure for a STA (the most common), there must be an Access Point
|
||||
already available. To enable STA configuration there are only two variables
|
||||
you need to worry about. The first is the IS_AP variable. For a STA
|
||||
installation, it should always be be set to 'n'. The second variable
|
||||
is DESIRED_SSID. DESIRED_SSID should be set to the SSID string
|
||||
currently being used by your access point. If the SSID has whitespace
|
||||
in it, make sure you quote the string. The remainder of variables in
|
||||
/etc/pcmcia/wlan-ng.opts don't matter for a STA installation.
|
||||
3.1 ENABLE Group
|
||||
The only variable is this group is:
|
||||
|
||||
WLAN_ENABLE=y
|
||||
This variable determines whether the card will be intialized,
|
||||
configured for operation, and your protocol stack configured.
|
||||
Generally, you always want this set to 'y'. For some cards,
|
||||
you will set this variable to 'n' when performing card
|
||||
maintenance like firmware upgrades.
|
||||
|
||||
3.2 DOWNLOAD Group
|
||||
|
||||
The DOWNLOAD group contains variables that indicate if code or data
|
||||
needs to be downloaded to the card prior to initialization and normal
|
||||
operation. Currently, this is only required for the Prism2 card when
|
||||
running in AP mode.
|
||||
|
||||
WLAN_DOWNLOAD=n
|
||||
Set this variable to 'y' if code or data must be downloaded
|
||||
into the card prior to operation.
|
||||
|
||||
WLAN_DOWNLOADER=/sbin/prism2dl
|
||||
This variable contains the name of the program used to
|
||||
download the code into the card.
|
||||
|
||||
WLAN_DLIMAGE=/etc/wlan/apfw.hex
|
||||
This variable contains the name of the file you wish to
|
||||
download.
|
||||
|
||||
3.3 USER MIB Group
|
||||
|
||||
There is only one variable in this group, USER_MIBS. You may add your
|
||||
own local MIB item assignments assignments to this variable. The
|
||||
wlan-ng script will loop through the assignments found in this
|
||||
variable and configure the card with each one prior to final
|
||||
configuration and enable.
|
||||
|
||||
3.4 WEP Group
|
||||
|
||||
The variables in the WEP group are used to configure the 802.11 "Wired
|
||||
Equivalent Privacy" element of the MAC if it is supported. The driver
|
||||
is queried for WEP support prior to attempting WEP configuration. If
|
||||
the driver states that WEP is NOT supported, these variables are
|
||||
ignored. Note that you may need to set some of these variables even if
|
||||
you are not using the privacy service. If shared-key authentication
|
||||
is used, the WEP keys must be present.
|
||||
|
||||
dot11PrivacyInvoked=false
|
||||
Set this variable to "true" to enable the WEP support.
|
||||
|
||||
dot11WEPDefaultKeyID=1
|
||||
This variable identifies which of the WEP keys is the default
|
||||
key used for all transmits from this station. In some
|
||||
implementations, this can be changed (or rotated) later.
|
||||
|
||||
dot11ExcludeUnencrypted=true
|
||||
Setting this variable to "true" and dot11PrivacyInvoked to
|
||||
true, has the effect of making WEP completely required for this
|
||||
station (or AP). If set to "true", this STA will discard any
|
||||
received frames that are not encrypted.
|
||||
|
||||
PRIV_GENERATOR=/sbin/nwepgen
|
||||
Some vendors include "WEP Key Generator" programs as part of
|
||||
their windows or AP implementations. This is purely a
|
||||
convenience to prevent you from having to type in 40
|
||||
hexadecimal digits. It does not contribute to the secrity of
|
||||
your system at all. In some cases, we've included small
|
||||
programs that generate keys in a manner compatible with the
|
||||
vendor's method. If you wish to use this capability, include
|
||||
the name of the generator program here.
|
||||
|
||||
PRIV_GENSTR="12345"
|
||||
Every generator implementation we've seen so far uses some
|
||||
kind of 'passphrase' to generate the keys. This variable
|
||||
contains the passphrase. To disable the use of a generator,
|
||||
leave this variable empty.
|
||||
|
||||
dot11WEPDefaultKey0
|
||||
dot11WEPDefaultKey1
|
||||
dot11WEPDefaultKey2
|
||||
dot11WEPDefaultKey3
|
||||
If you are configuring your keys by hand, you need to assign
|
||||
these four variables. The format is "xx:xx:xx:xx:xx" and the
|
||||
order of the keys in these variables IS IMPORTANT. Note: If
|
||||
the PRIV_GENSTR variable is not empty, these variables are
|
||||
ignored.
|
||||
|
||||
3.5 STA Group
|
||||
|
||||
Currently, there is only one variable in the STA group. This will
|
||||
change over time.
|
||||
|
||||
dot11DesiredSSID="WLAN_PRISM2"
|
||||
This variable contains the SSID or "network name" of the
|
||||
wireless network you wish to associate with.
|
||||
|
||||
3.6 AP START Group
|
||||
|
||||
If you have access to the necessary hardware and firmware, this driver
|
||||
can be used to set up a Access Point. To configure for an access
|
||||
|
@ -64,14 +159,11 @@ point, set the IS_AP variable to 'y'. The following is a quick
|
|||
summary of the other AP configuration variables:
|
||||
|
||||
|
||||
AP_FWIMAGE=/etc/wlan/t10001c0.hex
|
||||
Defines the location of a firmware image for those cards that
|
||||
need code downloaded at initialization time.
|
||||
APBRIDGEDEVICE=eth0
|
||||
Defines the ethernet device that will be the 'other' port for
|
||||
bridging 802.11 frames.
|
||||
APSSID="WLAN_PRISM2"
|
||||
Defines the SSID that the AP will use in creating the network.
|
||||
Defines the SSID that the AP will use when creating the network.
|
||||
APBCNINT=100
|
||||
Defines the beacon interval (in Kus) that the AP will use.
|
||||
APDTIMINT=3
|
||||
|
@ -94,12 +186,18 @@ APCFPMAXDURATION=100
|
|||
|
||||
APPROBEDELAY=100
|
||||
Not used for infrastructure networks, any value is valid.
|
||||
|
||||
APCHANNEL=6
|
||||
Channel that the AP will create the network on.
|
||||
Channel that the AP will create the network on. Range of valid
|
||||
values depends on you regulatory domain. In the USA and Canada
|
||||
the range is 1-11. In Japan the range is 1-14.
|
||||
|
||||
|
||||
APBASICRATES="2 4"
|
||||
A whitespace separated list of data rates in units of 500Kb/s.
|
||||
The basic rate set is the set of rates that stations MUST
|
||||
support to be allowed to join the network.
|
||||
|
||||
APOPRATES="2 4 11 22"
|
||||
A whitespace separated list of data rates in units of 500Kb/s.
|
||||
The operational rate set is the set of rates that are allowed
|
||||
|
|
|
@ -89,6 +89,10 @@ case "$ADDRESS" in
|
|||
dot11WEPDefaultKey2=
|
||||
dot11WEPDefaultKey3=
|
||||
|
||||
#=======STA========================================
|
||||
# SSID is all we have for now
|
||||
dot11DesiredSSID="WLAN_PRISM2"
|
||||
|
||||
#=======AP START======================================
|
||||
# If IS_AP is 'y', then the following settings will be
|
||||
# used in the creation of a BSS with this station acting
|
||||
|
@ -115,11 +119,5 @@ case "$ADDRESS" in
|
|||
# false true CFP for delivery only (no polling)
|
||||
# true false CFP delivery and polling
|
||||
# true true Reserved, do not use
|
||||
|
||||
|
||||
#=======STA========================================
|
||||
# SSID is all we have for now
|
||||
dot11DesiredSSID="WLAN_PRISM2"
|
||||
|
||||
;;
|
||||
esac
|
||||
|
|
Loading…
Reference in a new issue