MA101 security mode

Robert Sparmann <bob-/8rboI+yaUFWk0Htik3J/[email protected]> Wed, 03 Sep 2003 01:13:30 +0200
Newsgroups gmane.linux.drivers.atmel-wlan
Message-ID <[email protected]>
Hi,

I've got a Netgear MA101 rev. B running (thanks to the guys from 
atmel-wlan). Unfortunately I'm not able to configure this device with 
iwconfig properly, so I have to run lvnet after every reboot.
I found a little shell script which looks like this:

#!/bin/sh
DEVICE="eth1"
ESSID="my_essid"
KEY="CCCC-CCCC-CCCC-CCCC-CCCC-CCCC-CC"

iwconfig $DEVICE mode Managed
iwconfig $DEVICE essid $ESSID
iwconfig $DEVICE mode managed
iwconfig $DEVICE rate 11M
iwconfig $DEVICE key $KEY [1]
iwconfig $DEVICE key [1] restricted
iwconfig $DEVICE key on

it's almost working, but please take a look at this:

bob root # iwconfig eth1
eth1      ATMEL RFMD503A  ESSID:"my_essid"  Nickname:"my_nickname"
          Mode:Managed  Channel:6  Access Point: 00:35:AC:22:D7:E4
          Bit Rate:11Mb/s  
          RTS thr=2347 B   Fragment thr=2346 B  
          Encryption key:CCCC-CCCC-CCCC-CCCC-CCCC-CCCC-CC   Security 
mode:restricted
          Security mode:open
          Link Quality:100  Signal level:20  Noise level:0
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

when I use lvnet, I don't have Security mode twice (and I'm able to 
connect to my ap using the latter).  I already tried to understand the 
way lvnet does the card's configuration by looking at the source code, 
but I somehow couldn't find the relevant section. I would really 
appreciate some hints.
Thanks in advance
-Robert