Sophie

Sophie

distrib > Mandriva > 9.1 > ppc > by-pkgid > 28aebe6246786b18da0467a96ef19b6e > files > 11

ap-utils-1.3.1-1mdk.ppc.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<HTML>
    <HEAD>
        <META http-equiv="Content-Type" content="text/html; charset=utf-8">
        <META name="GENERATOR" content="vim">
        <META name="PUBLISHER" content="Wolfgang Fuschlberger">
        <META name="LANGUAGE" content="en">
        <META name="KEYWORDS" content="wireless, lan, wlan, ovislink, pcmcia, access, point, linux, wep, encryption, radio, wlan-ng, wlan-ng.conf, manual">
        <META name="AUTHOR" content="Wolfgang Fuschlberger">
        <META name="COPYRIGHT" content="Wolfgang Fuschlberger">
        <META name="ROBOTS" content="all">
        <META name="revisit-after" content="10 days">
        <TITLE>Linux and Wireless Ovislink Airlive WL-1100AP/WL-1100PCM with Intersil Prism2 Chipset</TITLE>
        <SCRIPT type="text/javascript" language="JavaScript"> 
            <!-- 
            if (parent.frames.length) parent.location.href = location.href;
            //-->
        </SCRIPT>

</HEAD>

<BODY bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#AA00BA" alink="#FF0000">
<BR>
<H1 align="center">Ovislink Airlive WL-1100AP Access Point<BR>Ovislink Airlive WL-1100PCM PCMCIA Adapter</H1>

<BR><BR>


<P>
<hr>
<em>
On this page you will a find a short guide on how to set up this wireless hardware under Linux.<BR>
I wrote it because when I searched google I found <span style="font-weight:bold">nothing</span> about this Hardware.
</em>
<hr>
</P>

<P>
All comments, suggestions etc. are welcome. Please contact me at <A HREF="mailto:wf-hp&#64;gmx.net">wf-hp&#64;gmx.net</A>.
</P>

<hr width="40%" align="center">

<P>
A few days ago I decided to get me a new toy. I bought a wireless LAN-Card together with an access-point (short AP) to avoid 20 metres of Twisted-Pair Cable lying through the corridors of my home.</P>

<P>I chose the Ovislink hardware, because on the box of the PCMCIA-card Linux was listed as an OS which supported the card. The manual of the AP which they allowed me to read in the shop said it had to be configured over SNMP. After doing a little research on google I found out, that chances were good this could be done with one of the programs from ap-utils. I hoped it would work, but I have to confess I would have also used Windows for the configuration, since the price was rather low and I badly wanted to have that thing.
</P>

<P>
I own a HP Omnibook XE3-GC (the old variant with the Savage-Chip) running Debian/sarge at the moment (in stable/woody the package ap-utils was not included) and a router running Debian/woody, which now got a second NIC (network interface card) to attach the AP.
</P>

<hr width="80%" align="center">

<BR>

<H3>
Setting up the PCMCIA-Card
</H3>

<P>
The WLAN-Card has a Prism2-Chip which is supported by linux-wlan-ng.
<BR>
In this file I will only cover the relevant details for WLAN-Configuration. For the basics please refer to the <A HREF="http://www.tldp.org/HOWTO/PCMCIA-HOWTO.html"><U>PCMCIA-HOWTO</U></A>.
</P>

<P>
I heard reports that this card also worked with orinoco_cs. I will continue to use prism2_cs since it is the 'official' driver-module offered by Ovislink, but I am interested in reports about using orinoco_cs, especially the differences to prism2_cs.
</P>

<P>
Things you need for compiling linux-wlan-ng:<BR>
- sources of linux-wlan-ng from <A HREF="http://www.linux-wlan.com"><U>http://www.linux-wlan.com</U></A><BR>
- sources of pcmcia-cs from <A HREF="http://pcmcia-cs.sourceforge.net"><U>http://pcmcia-cs.sourceforge.net</U></A><BR>
- sources of your linux kernel from <A HREF="http://www.kernel.org"><U>http://www.kernel.org</U></A>
</P>

<P>
For Debian-users: <code>apt-get source linux-wlan-ng pcmcia-cs kernel-source-`uname -r`</code>
</P>

<P>
Run <code>./Configure</code> in the source-directory of pcmcia-cs.
</P>
<P>
Run <code>./Configure</code> in the source-directory of linux-wlan-ng and answer the following question with yes:<BR>
<code>
Build Prism2.x PCMCIA Card Services (_cs) driver? (y/n) [y]: y 
</code>
</P>
<P>
The other modules (PCI- and USB-drivers) are not needed.
</P>

<P>
Compile and install (as root) pcmcia-cs (if it is not installed yet) and linux-wlan-ng by running in both of the source-directories:<BR>
<code>make && make install</code>.
</P>

<P>
Add the following lines to the file <code>/etc/pcmcia/config.opts</code>. In case you are using Debian you can add it to <code>/etc/pcmcia/wlan-ng.conf</code>, since all *.conf-files in <code>/etc/pcmcia/</code> are sourced from <code>/etc/pcmcia/config.opts</code>:
</P>

<P>
<code>
card "Intersil PRISM2 11 Mbps Wireless Adapter"<BR>
&nbsp;&nbsp;&nbsp;manfid 0x0156, 0x0002<BR>
&nbsp;&nbsp;&nbsp;bind "prism2_cs"
</code>
</P>

<P>
With this card-definition the card will be recognized correctly by cardmgr when it is inserted into the PCMCIA-slot and the module <code>/lib/modules/`uname -r`/pcmcia/prism2_cs.o</code> will be loaded.
</P>

<P>
Next you have to configure the files <code>/etc/pcmcia/network.opts</code> for the network-parameters of the WLAN-interface <code>/dev/wlan0</code> and <code>/etc/pcmcia/wlan-ng.opts</code> for the WLAN-configuration itself. Both files are commented thoroughly and the names of the variables are rather self-explaining.
</P>

<BR>

<P>
This is my <code>/etc/pcmcia/wlan-ng.opts</code> without the Comment-lines:<BR>
(YES, I changed my WEP-keys :-) )
</P>

<P>
<code>
============ Begin of File /etc/pcmcia/wlan-ng.opts ============<BR>
WLAN_VERSION=0<BR>
WLAN_PATCHLEVEL=1<BR>
WLAN_SUBLEVEL=15<BR>
WLAN_EXTRAVERSION=<BR>
<BR>
case "$ADDRESS" in<BR>
wlannoenable,*,*,*)<BR>
&nbsp;&nbsp;&nbsp;&nbsp;WLAN_ENABLE=n<BR>
;;<BR>
*,*,*,*)<BR>
&nbsp;&nbsp;&nbsp;&nbsp;#=======WEP===========================================<BR>
&nbsp;&nbsp;&nbsp;&nbsp;lnxreq_hostWEPEncrypt=true<BR>
&nbsp;&nbsp;&nbsp;&nbsp;lnxreq_hostWEPDecrypt=true<BR>
&nbsp;&nbsp;&nbsp;&nbsp;dot11PrivacyInvoked=true<BR>
&nbsp;&nbsp;&nbsp;&nbsp;dot11WEPDefaultKeyID=0<BR>
&nbsp;&nbsp;&nbsp;&nbsp;dot11ExcludeUnencrypted=true<BR>
&nbsp;&nbsp;&nbsp;&nbsp;dot11WEPDefaultKey0=01:23:45:67:89:AB:CD:EF:00:00:00:00:00<BR>
&nbsp;&nbsp;&nbsp;&nbsp;dot11WEPDefaultKey1=CC:CC:CC:CC:CC:CC:CC:CC:CC:CC:CC:CC:CC<BR>
&nbsp;&nbsp;&nbsp;&nbsp;dot11WEPDefaultKey2=FF:FF:FF:FF:FF:FF:FF:FF:FF:FF:FF:FF:F0<BR>
&nbsp;&nbsp;&nbsp;&nbsp;dot11WEPDefaultKey3=00:00:00:00:00:00:00:00:00:00:00:00:0F<BR>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;#=======SELECT STATION MODE===================<BR>
&nbsp;&nbsp;&nbsp;&nbsp;IS_ADHOC=n          # y|n, y - adhoc, n - infrastructure<BR>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;#=======INFRASTRUCTURE STATION START===================<BR>
&nbsp;&nbsp;&nbsp;&nbsp;AuthType="sharedkey"<BR>
&nbsp;&nbsp;&nbsp;&nbsp;DesiredSSID="wlan"<BR>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;#=======ADHOC STATION START============================<BR>
&nbsp;&nbsp;&nbsp;&nbsp;SSID="adhoc-wlan"<BR>
&nbsp;&nbsp;&nbsp;&nbsp;BCNINT=100<BR>
&nbsp;&nbsp;&nbsp;&nbsp;CHANNEL=6<BR>
&nbsp;&nbsp;&nbsp;&nbsp;BASICRATES="2 4"<BR>
&nbsp;&nbsp;&nbsp;&nbsp;OPRATES="2 4 11 22"<BR>
&nbsp;&nbsp;&nbsp;&nbsp;;;<BR>
esac<BR>
============ End of File /etc/pcmcia/wlan-ng.opts ============
</code>
</P>

<P>
The settings for ad-hoc-mode are untested, since I have not yet found anybody for testing.
</P>

<P>
The nickname of the card can be set with the following command:<BR>
<code>
wlancfg set wlan0<BR>
p2CnfOwnName=mynewnickname
</code>
</P>

<BR>

<P>
This is my <code>/etc/pcmcia/networks.opts</code> without the Comment-lines:
</P>

<P>
<code>
============ Begin of File /etc/pcmcia/networks.opts ============<BR>
case "$ADDRESS" in<BR>
*,*,*,*)<BR>
&nbsp;&nbsp;&nbsp;&nbsp;BOOTP="n"<BR>
&nbsp;&nbsp;&nbsp;&nbsp;DHCP="n"<BR>
&nbsp;&nbsp;&nbsp;&nbsp;PPPOE="n"<BR>
&nbsp;&nbsp;&nbsp;&nbsp;WHEREAMI="n"<BR>
&nbsp;&nbsp;&nbsp;&nbsp;IPADDR="192.168.1.1"<BR>
&nbsp;&nbsp;&nbsp;&nbsp;NETMASK="255.255.255.0"<BR>
&nbsp;&nbsp;&nbsp;&nbsp;IPMASQ="n"<BR>
&nbsp;&nbsp;&nbsp;&nbsp;start_fn () { return; }<BR>
&nbsp;&nbsp;&nbsp;&nbsp;stop_fn () { return; }<BR>
&nbsp;&nbsp;&nbsp;&nbsp;NO_CHECK=n<BR>
&nbsp;&nbsp;&nbsp;&nbsp;NO_FUSER=n<BR>
&nbsp;&nbsp;&nbsp;&nbsp;;;<BR>
esac<BR>
============ End of File /etc/pcmcia/networks.opts ============
</code>
</P>

<P>
In my case I did not have to set a gateway because I am running a 1024bit-encrypted VPN (from <A HREF="http://www.tinc.org"><U>www.tinc.org</U></A>) over the radio-connection which is my default route.
</P>

<hr width="80%" align="center">

<BR>


<H3>
<A name="accesspoint">
Setting up the Access-Point
</A>
</H3>

<P>
<span style="font-weight:bold">Important Note:</span> You can configure everything under Linux. No need to boot Windows.
</P>

<P>
Some interesting facts (which took me quite some time to find in the manual):<BR>
Default-IP-address: 192.168.0.1<BR>
Default-password: public<BR>
Needed Cable: straight TwistedPair-Cable when connected to a switch or hub, a crossover cable when connecting directly to a NIC (network interface card)
</P>

<P>
Download ap-utils from <A HREF="http://ap-utils.polesye.net/"><U>http://ap-utils.polesye.net/</U></A>.
</P>

<P>
Compile the programs:<BR>
<code>
./configure<BR>
make && make install
</code>
</P>

<P>
Start the program <code>ap-config</code>.
</P>

<P>
Enter the default-IP-address of the AP (192.168.0.1), the default-password ('public') and choose 'AP type: ATMEL'<BR>
This should connect you to the AP.<BR>
If this does not work check your network and routing settings, especially the netmask
</P>

<P>
The configuration is explained in the manual that came with the AP.
</P>

<BR>

<H5>
Some oddities you may encounter:
</H5>

<P>
The WEP saved in the AP will never displayed, even though they were entered and saved correctly. The only thing you can to ensure encryption works is testing it with a WLAN-card and checking it with <code>wlancfg show wlan0</code>
</P>

<BR>

<P>
One really interesting feature of ap-config is the possibility of changing the radio power output of the AP:
</P>

<P>
This scale is everything I guessed so far. If you have any more details please let me know:
</P>

<table border="0" cellspacing="5" cellpadding="0">
<tr>
<td>
<P align="center">
decimal number in ap-config
</P>
</td>
<td>
<P align="center">
power output
</P>
</td>
</tr>
<tr>
<td>
<P align="center">
128
</P>
</td>
<td>
<P align="center">
100% (whatever this means in W)
</P>
</td>
</tr>
<tr>
<td>
<P align="center">
255/0
</P>
</td>
<td>
<P align="center">
50%
</P>
</td>
</tr>
<tr>
<td>
<P align="center">
127
</P>
</td>
<td>
<P align="center">
0%/off
</P>
</td>
</tr>
</table>

<BR>
<P>
Have fun!
</P>

<BR>
<BR>
<BR>
<BR>

<P align="center">
&copy; 2002 by <A HREF="mailto:wf-hp&#64;gmx.net">Wolfgang Fuschlberger</A><BR>
last update: 2002-11-24
</P>

<center>
<!--WEBBOT bot="HTMLMarkup" startspan ALT="Site Meter" -->
<script type="text/javascript" language="JavaScript">var site="s14wlanguide"</script>
<script type="text/javascript" language="JavaScript1.2" src="http://s14.sitemeter.com/js/counter.js?site=s14wlanguide">
</script>
<noscript>
<a href="http://s14.sitemeter.com/stats.asp?site=s14wlanguide" target="_top">
<img src="http://s14.sitemeter.com/meter.asp?site=s14wlanguide" alt="Site Meter" border=0></a>
</noscript>
<!-- Copyright (c)2002 Site Meter -->
<!--WEBBOT bot="HTMLMarkup" Endspan -->
</center

</BODY>
</HTML>

       <!--(c) 2002 by Wolfgang Fuschlberger-->