Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
wlan-ng drivers and WEP
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
valkur
n00b
n00b


Joined: 07 Nov 2003
Posts: 26
Location: Manitoba

PostPosted: Fri Dec 05, 2003 9:29 pm    Post subject: wlan-ng drivers and WEP Reply with quote

I have read alot of the wep related posts but have not found any with the same break that I have here, this is the steps I have taken to setup my wireless:

First of all I am using a Microsoft (I know, but lets not go there) USB Wireless adapter (MN-510).

Code:
USE="usb" emerge linux-wlan-ng
emerge wireless-tools

modprobe prism2_usb prism2_doreset=1


added iface_wlan0="dhcp" to /etc/conf.d/net

At this point I can connect to a Non-WEP access point by doing the following:

Code:
/etc/init.d/wlan start
dhcpcd wlan0


However I need WEP so I continue....

created /etc/conf.d/wlancfg-<WEP enabled ssid> and edit to be the following:

Code:
lnxreq_hostWEPEncrypt=true
lnxreq_hostWEPDecrypt=true
dot11PricacyInvoked=true
dot11WEPDefaultKeyID=0
dot11ExcludeUnencrypted=true

PRIV_GENERATOR=/sbin/keygen
PRIV_KEY128=false
PRIV_GENSTR=""

dot11WEPDefaultKey0=XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX
dot11WEPDefaultKey1=
dot11WEPDefaultKey2=
dot11WEPDefaultKey3=

IS_ADHOC=n

AuthType="sharedkey"

BCNINT=100
CHANNEL=6

BASICRATES="2 4"
OPRATES="2 4 11 22"


Just to make sure I also have tried commenting out all the PRIV_ lines as I am using a shared key.

Now my WEP should be setup so I start the interface and try to get an IP address, which times out. dmesg gives me the following info:

Code:
linkstatus=CONNECTED
wlan0: no IPv6 routers present
dhcpcd[3551]: timed out waiting for a valid DHCP server response


So it appears it is not using the key, I have also tried putting the key in Key1= because the access point lists them 1 - 4 and I am using 1, still no luck.

Running iwconfig wlan0 gives me the following info:

Code:
wlan0  IEEE 802.11-b ESSID:""
       Mode:Managed  Frequency:2.437GHz  Access Point: XX:correct MAC:XX
       Bit Rate:11Mb/s  Tx-Power:2346 dBm
       Retry min limit:8  TRS thr:off  Fragment thr:off
       Encryption key:off
       Link Quality:92/92  Signal Level:-40 dBm  Noise level:-99 dBm
       Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
       Tx excessive retries:0  Invalid misc:0  Missed beacon:0


I then try to set the encryption manually using iwconfig but no matter what command I try to give it all I get is the following error:

Code:
iwconfig wlan0 key xxxxxxxxxxxxxxxxx

Error for wireless request "Set Encode" (8B2A) :
  SET failed on device wlan0 ; Function not implemented.



Any one dealt with this or am I missing something obvious? Please shed some light.

Thanks.
_________________
If computers get too powerful, we can organize them into a committee -- that will do them in.
-- Bradley's Bromide
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Fri Dec 05, 2003 9:37 pm    Post subject: Reply with quote

I could never get the wlan drivers to play nicely with my WEP.
Using the standard 2.6 kernel drivers and pcmcia-cs and wirelesstools I've got it to work nicely :)
Back to top
View user's profile Send private message
valkur
n00b
n00b


Joined: 07 Nov 2003
Posts: 26
Location: Manitoba

PostPosted: Mon Dec 08, 2003 8:55 pm    Post subject: Reply with quote

I should have mentioned, I am using the 2.4 gentoo-sources kernel with USB.
_________________
If computers get too powerful, we can organize them into a committee -- that will do them in.
-- Bradley's Bromide
Back to top
View user's profile Send private message
prnstr
n00b
n00b


Joined: 12 Sep 2003
Posts: 5

PostPosted: Tue Dec 09, 2003 5:15 am    Post subject: Reply with quote

The key to getting the wlan-ng drivers to work is to update the firmware on your card. Most of the drivers features are based on the firware. I was having lots of problems till I updated mine.
_________________
Work Harder! People on Welfare need your help.
Back to top
View user's profile Send private message
valkur
n00b
n00b


Joined: 07 Nov 2003
Posts: 26
Location: Manitoba

PostPosted: Wed Dec 10, 2003 4:04 pm    Post subject: Reply with quote

I checked the intersil firmware on this thing, and its 0.83.

Is there a newer one available? do you know where I can find it?

Thanks.
_________________
If computers get too powerful, we can organize them into a committee -- that will do them in.
-- Bradley's Bromide
Back to top
View user's profile Send private message
prnstr
n00b
n00b


Joined: 12 Sep 2003
Posts: 5

PostPosted: Thu Dec 11, 2003 3:14 pm    Post subject: Reply with quote

Here is a link to an upgrade site. Upgrading the firmware is a little risky because most manufactures don't support it.

http://www.macsense.com/support/aeropad/firmwareupgrade.html

Good luck. From what I read, its best to use a windows util to update the firmware.
_________________
Work Harder! People on Welfare need your help.
Back to top
View user's profile Send private message
prnstr
n00b
n00b


Joined: 12 Sep 2003
Posts: 5

PostPosted: Thu Dec 11, 2003 10:23 pm    Post subject: Reply with quote

One thing I missed in your previous post is that wireless tools do not work with the wlan-ng drivers, i.e. iwconfig. You need to do the configuration via the wlan-ng config files. Since most gui programs use wireless tools you may want to consider going with the hostap drivers. If you stay with wlan-ng the config file is in /etc/conf.d/wlan.conf.
_________________
Work Harder! People on Welfare need your help.
Back to top
View user's profile Send private message
valkur
n00b
n00b


Joined: 07 Nov 2003
Posts: 26
Location: Manitoba

PostPosted: Fri Dec 12, 2003 3:00 pm    Post subject: Reply with quote

Thanks! I risked the update and it went smoothly, so I am going to see what I can do now.
_________________
If computers get too powerful, we can organize them into a committee -- that will do them in.
-- Bradley's Bromide
Back to top
View user's profile Send private message
deeppro
n00b
n00b


Joined: 01 Jan 2004
Posts: 18
Location: BELGIUM / BXL

PostPosted: Fri Jan 02, 2004 1:28 am    Post subject: Reply with quote

do not upgrade your firmware, it's just bullshit !!!

you just need to do this before using dhcpcd eth1

Code:
iwconfig eth1 essid ... key open XXXXXXXXXXXXX.


it's just the open who was missing ...
Back to top
View user's profile Send private message
desh
n00b
n00b


Joined: 20 May 2003
Posts: 6

PostPosted: Fri Jan 09, 2004 9:28 am    Post subject: Reply with quote

I don't think either of the above solutions is right (upgrading the firmware, or using iwconfig). I'm running into the same problem with wlan-ng and WEP, and here's what I know for sure:

- This same card (PCI PLX card + Belkin PCMCIA card) worked fine, WEP enabled, in an older version of wlan-ng on Red Hat 8
- I have not changed the firmware since, so this has nothing to with firmware revisions
- iwconfig (i.e. wireless extensions) is supported by newer releases of wlan-ng, but wlanctl-ng should be the right way of doing this. In particular, "iwconfig eth1 essid ... key open XXXXXXXXXXXXX" does not work.
- The Gentoo /etc/init.d/wlan script uses wlanctl-ng to enable WEP on the card, and the reported return codes indicate success, but iwconfig on wlan0 still shows that encryption is not enabled on the card.
- But iwconfig on another machine (my home-built access point running Red Hat 8 and the hostap driver) shows encryption enabled, and displays the right WEP key.

Therefore: there is something wrong with either this release of wlan-ng (0.2.1-pre11), or with the way the Gentoo scripts are initialising the card.

Here are the wlanctl-ng commands that are being issued by the startup script (I've omitted the actual WEP keys), and all are being reported successful:

Code:

 /sbin/wlanctl-ng wlan0 dot11req_mibset mibattribute=dot11WEPDefaultKeyID=0
 /sbin/wlanctl-ng wlan0 dot11req_mibset mibattribute=dot11ExcludeUnencrypted=true
 /sbin/wlanctl-ng wlan0 dot11req_mibset mibattribute=dot11PrivacyInvoked=true
 /sbin/wlanctl-ng wlan0 dot11req_mibset mibattribute=dot11WEPDefaultKey0=xxx
 /sbin/wlanctl-ng wlan0 dot11req_mibset mibattribute=dot11WEPDefaultKey1=xxx
 /sbin/wlanctl-ng wlan0 dot11req_mibset mibattribute=dot11WEPDefaultKey2=xxx
 /sbin/wlanctl-ng wlan0 dot11req_mibset mibattribute=dot11WEPDefaultKey3=xxx
Back to top
View user's profile Send private message
benguru
Tux's lil' helper
Tux's lil' helper


Joined: 19 Feb 2004
Posts: 125

PostPosted: Sun Feb 22, 2004 4:30 pm    Post subject: MN-510 Reply with quote

Hi,
Sorry for bringing this topic back, and going off topic, but Valkur mentioned he used a MN-510, I also have one and was trying to set it up. I emerge both linux-wlan-ng, and wireless-tools, but when I do the modprobe it says prism2_usb is unknown, or something like that. Can you tell me what I am doing wrong? Please help, thanks

EDIT: I wasn't setting USE="usb" and emerge linux-wlan-ng on the sme line, or exporting. Doh.
Back to top
View user's profile Send private message
lazaruslong
n00b
n00b


Joined: 23 May 2003
Posts: 1

PostPosted: Sat Mar 27, 2004 7:45 am    Post subject: Possible things Reply with quote

I found that if I used the genstr settings in the wlancfg-ssid file and made sure NOT to put in a specific key code - it worked!
Back to top
View user's profile Send private message
MattSharp
Apprentice
Apprentice


Joined: 15 Aug 2003
Posts: 258

PostPosted: Sat May 29, 2004 4:00 am    Post subject: Reply with quote

I am still having problems with this. I can't for the life of me get Encryption turned on. I have the settings mentioned for the wlancfg file but it still show nothing. Anyone ever solve this?
Back to top
View user's profile Send private message
echo6
Guru
Guru


Joined: 04 Jan 2003
Posts: 587

PostPosted: Sat May 29, 2004 1:22 pm    Post subject: Reply with quote

Thanks to desh for the commands I've managed to manualy set up a D-Link DWL-122 usb with encryption doing it manually via a shell script.
Back to top
View user's profile Send private message
MattSharp
Apprentice
Apprentice


Joined: 15 Aug 2003
Posts: 258

PostPosted: Sat May 29, 2004 4:40 pm    Post subject: Reply with quote

echo6 wrote:
Thanks to desh for the commands I've managed to manualy set up a D-Link DWL-122 usb with encryption doing it manually via a shell script.


I have all that info in my config file already? Should I still type it in the shell?
Back to top
View user's profile Send private message
echo6
Guru
Guru


Joined: 04 Jan 2003
Posts: 587

PostPosted: Sat May 29, 2004 9:57 pm    Post subject: Reply with quote

Worth a try!

I need to do it via a shell script as I've installed the drivers, default install with usb, on a remastered Knoppix boot cdrom.

Just wish I could work out how to get the device configured for Ad-Hoc.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum