Hi Jacanlas:
first read this:
ftp://ftp.linux-wlan.org/pub/linux-wlan-ng/README
It is the same README you find in the archive and it contains detailed
explanations how to use that driver.
Try to understand what's written in there. This is essential!
Nearly everything I'm writing here is in that README already described.
Login to your box as root.
cd /usr/src/modules
if that doesn't exist
mkdir /usr/src/modules
first.
If you have any chance to connect your myth box with the internet:
wget ftp://ftp.linux-wlan.org/pub/linux-wlan ... e20.tar.gz
or whatever is newer
or download it on some other system, burn a CD, put the CD in
your box
mount /cdrom
cp /cdrom/linux-wlan-ng-0.2.1-pre20.tar.gz .
the dot at the end means cp to the local directory, as you should be already in /usr/src/modules.
umount /cdrom; eject
Now lets continue:
tar xvzf linux-wlan-ng-0.2.1-pre20.tar.gz
cd linux-wlan-ng-0.2.1-pre20
make config
answer the questions explained in the README
you only need to answer "yes" to the fourth question where
you are asked for the prism2_usb driver
the first three questions answer with no
the rest leave on default
make all; make install
Now edit /etc/modutils/linux-wlan-ng
it should look like this
To edit a file on Linux use vi, nano or whatever you feel more
comfortable with, but that's beyond the scope of this document.
Code:
# Aliases to tell insmod/modprobe which module to use when bringing up the
# wlan0 interface.
# Uncomment the line corresponding to the type of prism2 device you have.
#alias wlan0 prism2_pci
alias wlan0 prism2_usb
#alias wlan0 prism2_cs
#alias wlan0 prism2_plx
Then you need to adjust /etc/network/interfaces
I've only the wlan adapter active on my system, that's why
eth0 is commented out. Insert something what works on
your site as IP-address.
Code:
# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
# The loopback interface
# automatically added when upgrading
auto lo eth0
iface lo inet loopback
#iface eth0 inet static
#address 192.168.nnn.nnn
#netmask 255.255.255.0
#network 192.168.nnn.0
#broadcast 192.168.nnn.255
#gateway 192.168.nnn.nnn
iface wlan0 inet static
address 192.168.nnn.nnn
netmask 255.255.255.0
network 192.168.nnn.0
broadcast 192.168.nnn.255
gateway 192.168.nnn.nnn
And last, but not least you need to modify the files /etc/wlan.conf.
Look for:
Code:
SSID_wlan0="enter your SSID here"
ENABLE_wlan0=y
And /etc/wlan/wlancfg-your-SSID-from-wlan.conf
cp wlancfg-DEFAULT
/etc/wlan/wlancfg-your-SSID-from-wlan.conf
The only thing to modify in the example below should be
dot11WEPDefaultKey0
Quote:
#=======USER MIB SETTINGS=============================
# You can add the assignments for various MIB items
# of your 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.
# If PRIV_GENSTR is not empty, use PRIV_GENTSTR to generate
# keys (just a convenience)
# add-ons/ in the tarball contains other key generators.
PRIV_GENERATOR=/sbin/nwepgen # nwepgen, Neesus compatible
PRIV_KEY128=true # keylength to generate
PRIV_GENSTR=""
# or set them explicitly. Set genstr or keys, not both.
dot11WEPDefaultKey0=xx:xx:xx:xx:xx # format: xx:xx:xx:xx:xx or
dot11WEPDefaultKey1= # xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx
dot11WEPDefaultKey2= # e.g. 01:20:03:40:05 or
dot11WEPDefaultKey3= # 01:02:03:04:05:06:07:08:09:0a:0b:0c:0d
#=======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
# on regulatory domain)
BASICRATES="2 4" # Rates for mgmt&ctl frames (in 500Kb/s)
OPRATES="2 4 11 22" # Supported rates in BSS (in 500Kb/s)
To test the whole thing
/etc/init.d/wlan start
Look in /var/log/messages for any errors.
And if everything is fine you want to have this as an autostart everytime you reboot.
cd /etc/rc5.d
ln -s ../init.d/wlan S90wlan
cd /etc/rc2.d
ln -s ../init.d/wlan S90wlan
cd /etc/rc3.d
ln -s ../init.d/wlan S90wlan
Good luck!