Installation manual
46 5. Debian and other Software Packages
fi
;;
*)
SCHEME=‘cat $SCHEMEFILE | sed "s/−/ /" | awk ’{print $2}’‘
SCHEMES=‘grep iface /etc/network/interfaces | grep wlan0 | sed "s/−/ /" | awk ’{
printf "%s ", $3}’‘
echo "Usage: wlan0 [up|start|down|stop|restart|scheme [xyz]]"
echo "where xyz is one of: $SCHEMES"
echo "Current scheme is: $SCHEME"
;;
esac
This script includes the standard linux-wlan-ng configuration files in /etc/wlan. Weset the SSID of our access
point in /etc/wlan/wlan.conf:
/etc/wlan/wlan.conf:
SSID_wlan0="myssid"
Then we copythe default configuration file /etc/wlan/wlancfg-DEFAULT to/etc/wlancfg-myssid and edit it to
represent our detailed setup:
New /etc/wlan/wlancfg-myssid:
#=======USER MIB SETTINGS=============================
#You can add the assignments for various MIB items
#ofyour choosing to this variable, separated by
#whitespace. The wlan−ng script will then set each one.
#Just uncomment the variable and set the assignments
#the way you want them.
#USER_MIBS="p2CnfRoamingMode=1 p2CnfShortPreamble=mixed"
#=======WEP===========================================
#[Dis/En]able WEP. Settings only matter if PrivacyInvoked is true
lnxreq_hostWEPEncrypt=true # true|false
lnxreq_hostWEPDecrypt=true # true|false
dot11PrivacyInvoked=true # true|false
dot11WEPDefaultKeyID=0 # 0|1|2|3
dot11ExcludeUnencrypted=true # true|false, in AP this means WEP is required.
#IfPRIV_GENSTR is not empty, use PRIV_GENTSTR to generate
#keys (just a convenience)
PRIV_GENERATOR=/sbin/nwepgen # nwepgen, Neesus compatible
PRIV_KEY128=false # keylength to generate
PRIV_GENSTR=""
#orset them explicitly. Set genstr or keys, not both.
dot11WEPDefaultKey0=01:02:03:04:05:06:07:08:09:0A:0B:0C:0D
dot11WEPDefaultKey1=11:12:13:14:15:16:17:18:19:1A:1B:1C:1D
dot11WEPDefaultKey2=21:22:23:24:25:26:27:28:29:2A:2B:2C:2D
dot11WEPDefaultKey3=01:32:33:34:35:36:37:38:39:3A:3B:3C:3D
#=======SELECT STATION MODE===================
IS_ADHOC=n # y|n, y − adhoc, n − infrastructure
#======= INFRASTRUCTURE STATION ===================
#What kind of authentication?
AuthType="opensystem" # opensystem | sharedkey (requires WEP)
#======= ADHOC STATION ============================
BCNINT=100 # Beacon interval (in Kus)
CHANNEL=6 # DS channel for BSS (1−14, depends
#onregulatory domain)
BASICRATES="2 4" #Rates for mgmt&ctl frames (in 500Kb/s)
OPRATES="2 4 11 22" #Supported rates in BSS (in 500Kb/s)
After inserting the card nothing happens. Wehav e to start and stop the interface manually by issuing the com-
mands wlan0 up and wlan0 down, respectively.