dslreports logo
site
spacer

spacer
 
    All FAQs Site FAQ DSL FAQ Cable Tech About DSL Distance DSL Hurdles »»
spc

spacer




how-to block ads



Procedure to install and configure a wireless lan card with a
PCI-PCMCIA adapter card in a desktop PC.

I am using a home built desktop PC and have a Linksys WDT11
PCI-PCMCIA adapter card with a DLink DWL-650 PCMCIA card for
my wireless access.

My Wireless Access Point (WAP) is a DLink DI-711 and also
serves as a NAT router and Internet gateway with a built-in
DHCP server. All of my IP addresses are obtained via DHCP from
this WAP for my home network.

This procedure works with Red Hat 8.0 and may be applicable to
other distros, but YMMV.

First, make sure your running kernel was compiled with the
following options specified. If any are missing you will have
to include them and rebuild your kernel. Some of these may
have been overkill on my part but it worked for me.

-------------------------------------------------
Kernel Configuration
---------------------

Networking options -- SECTION
Note: I chose "Y" to all of the "IP:..." options
DHCP.................. Y
BOOTP................. Y
IP:Netfilter Configuration
Set all options to compile as modules

Network device support -- SECTION
Network device support............ Y

Wireless LAN (non-hamradio)
Wireless LAN (non hamradio).... Y
Hermes chipset 802.11b support(Orinoco/Prism2/Symbol).. M

Wireless Pcmcia cards support
Hermes PCMCIA card support................. M

PCMCIA network device support
PCMCIA network device support...... Y
3Com 3c589......................... M
3Com 3c574......................... M
Fujitsu FMV-J18x................... M
NE2000 compatible.................. M
Pcmcia Wireless LAN................ Y
Aviator/Raytheon 2.4 Mhz........... M
Xircom Netwave AirSurfer........... M
AT&T/Lucent Wavelan................ M
AT&T/Lucent Wavelan IEEE 802.11.... M

---------------------------------------------------
Build the WLAN-NG PLX driver
----------------------------

Download the current WLAN driver from


»www.linux-wlan.com/linux-wlan

(current driver: linux-wlan-ng-0.1.16-pre7.tar.gz)

Untar the file and follow the README instructions to build the

driver.

Before building the driver, make sure that the following

section in:

~/linux-wlan-ng-0.1.16-pre7/src/prism2/driver/prism2sta.c

is changed as I have shown below:

/* Global Sun Tech GL24110P PCI Adapter (PLX) board */
#define PCIVENDOR_GLOBALSUN 0x16abUL
#define PCIDEVICE_GL24110P 0x1102UL <- change to 1102
#define PCIDEVICE_GL24110P_ALT 0x1101UL <- change to 1101

Note: this may need to be done because I am using a DLink
DWL-650 PMCMIA card with the Linksys PCI-PCMCIA adapter.
If you are using a Linksys WPC11 PCMCIA card with the
Linksys WDT11 PCI-PCMCIA adapter, this change may not be
needed.

Now you can do "make config" as specified in the README file.

Answer "Y" to build the PLX driver and "N" to all others.
You should not need the pcmcia_cs driver mentioned in the
README file since you are using a PCI-PCMCIA adapter card.

Build and install the driver. ("make" then "make install")

----------------------------------------------------------
Putting the rest of the pieces in place
---------------------------------------

Update file /etc/modules.conf to include the following:

alias wlan0 prism2_plx

Create file /etc/sysconfig/network-scripts/ifcfg-wlan0 to

include the following lines:

DEVICE=wlan0
BOOTPROTO=dhcp
ONBOOT=yes
USERCTL=yes
NETWORK=192.168.0.1 <-- or whatever your WAP IP is
NAME=wlan0

Change directory to /etc/sysconfig/networking and create a
soft link:

ln -s /etc/sysconfig/network-scripts/ifcfg-wlan0 ifcfg-wlan0

edit file ~/linux-wlan-ng-0.1.16-pre7/etc/wlan.conf
and make sure the following are specified:

=======ENABLE========================================
# Do we want to enable the card at all? Set to 'n' if you
# don't want the card initialized for normal operation.
# Helpful for (re)loading flash or for test purposes.
WLAN_ENABLE=y
.
.
.
#=======SELECT STATION MODE===================
IS_ADHOC=n # y|n, y - adhoc, n - infrastructure
.
.
.
#=======INFRASTRUCTURE STATION START===================
# SSID is all we have for now
AuthType="opensystem" # opensystem | sharedkey (requires WEP)
# Use DesiredSSID="" to associate with any AP in range
DesiredSSID="linux-wlan"

The DesiredSSID MUST MATCH your wireless access point SSID
or you will not be able to connect to it.

Save the changes and then copy this file to /etc/wlan.conf

Copy ~/linux-wlan-ng-0.1.16-pre7/etc/rc.wlan /etc/init.d/wlan

Create a soft link in /etc/rc.d/rc5.d and any other run level

you want to use as:

ln -s /etc/init.d/wlan /etc/rc.d/rc5.d/S06wlan

This will execute before the network is started and get the
wireless card initialized and ready to accept a DHCP assigned

IP address from your WAP.

REBOOT and you should be ready to go.

Again, the above is for RED HAT 8.0 using a Linksys WDT11
PCI-PCMCIA adapter and a DLink DWL-650 PCMCIA card with a
DLink DI-711 WAP in infrastructure mode and NOT using any
WEP (that is a different animal and I haven't tried to use
it myself yet).

Expand got feedback?

by Silverback See Profile edited by howe81 See Profile
last modified: 2002-12-20 21:45:49