You are not logged in.

#1 2008-05-10 02:20:04

sphetr2
Member
Registered: 2008-05-07
Posts: 16

Having trouble with ndiswrapper/wpa_supplicant/netcfg2

Hello,

I've got a Netgear WG511v3 wifi card that (I'm pretty sure) only works with ndiswrapper. So, I've installed the drivers and it works. What I mean is, WEP works. WPA, however, doesn't work.

I have wireless-tools netcfg and wpa_supplicant installed. One netcfg profile uses security=wpa-config and goes to the wpa_supplicant.conf I made.

The other uses security=wpa-psk with the key.

The former gets a "wireless association failed" error. Range is certainly not the issue here. One thing to note is that when running netcfg2 wireless, both the green and amber lights light up (good thing- green is power/activation and amber is traffic).

The latter gets DHCP IP lease attempt failed and doesn't show the amber light.

I guess my question is: which one is better/getting farther in the process of connecting? I would think DHCP comes after wireless association, but the first one looks like it's working better.

Thanks. If any more info needed just holla.

Offline

#2 2008-05-11 13:19:31

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: Having trouble with ndiswrapper/wpa_supplicant/netcfg2

The option is "SECURITY=wpa" not SECURITY=wpa-psk

Otherwise have you tried all of:
http://wiki.archlinux.org/index.php/Net … leshooting

Last edited by iphitus (2008-05-11 13:25:41)

Offline

#3 2008-05-11 17:43:57

sphetr2
Member
Registered: 2008-05-07
Posts: 16

Re: Having trouble with ndiswrapper/wpa_supplicant/netcfg2

OK, I changed it to wpa and I'm getting a "wireless association failed". Both the green and amber lights are blinking.

Well, it's certainly not a range or incorrect key problem - I'm right next to the router and I've tried retyping the key several times (other devices on my network connect fine).

What do you think?

Offline

#4 2008-05-11 18:16:13

raul_nds
Member
From: Lisbon, Portugal
Registered: 2007-06-28
Posts: 258

Re: Having trouble with ndiswrapper/wpa_supplicant/netcfg2

What does iwevent spit out?

Offline

#5 2008-05-11 20:19:30

sphetr2
Member
Registered: 2008-05-07
Posts: 16

Re: Having trouble with ndiswrapper/wpa_supplicant/netcfg2

[linux@dell ~]$ iwevent
Waiting for Wireless Events from interfaces...
20:15:29.170566   wlan0    Set Mode:Managed
20:15:29.172269   wlan0    Set ESSID:"-myessid-"
20:15:32.293134   wlan0    Set Mode:Managed
20:15:32.294834   wlan0    Set ESSID:"-myessid-"
20:15:32.597989   wlan0    Set Mode:Managed
20:15:32.886731   wlan0    Set Mode:Managed
20:15:32.886841   wlan0    Set Frequency:2.412 GHz (Channel 1)
20:15:32.887034   wlan0    Set ESSID:"-myessid-"
20:15:34.186905   wlan0    Association Request IEs:000542454C4C41010402040B1632080C1218243048606CDD160050F20101000050F20201000050F20201000050F202
20:15:34.187122   wlan0    Association Response IEs:010882848B962430486C32040C121860DD06001018010000
20:15:34.187215   wlan0    New Access Point/Cell address:00:0F:B5:25:BC:9A
20:15:35.495648   wlan0    Association Request IEs:000542454C4C41010402040B1632080C1218243048606CDD160050F20101000050F20201000050F20201000050F202
20:15:35.495841   wlan0    Association Response IEs:010882848B962430486C32040C121860DD06001018010100
20:15:35.495935   wlan0    New Access Point/Cell address:00:0F:B5:25:BC:9A
20:15:40.784217   wlan0    Association Request IEs:000542454C4C41010402040B1632080C1218243048606CDD160050F20101000050F20201000050F20201000050F202
20:15:40.784426   wlan0    Association Response IEs:010882848B962430486C32040C121860DD06001018010100
20:15:40.784518   wlan0    New Access Point/Cell address:00:0F:B5:25:BC:9A
20:15:46.067590   wlan0    Association Request IEs:000542454C4C41010402040B1632080C1218243048606CDD160050F20101000050F20201000050F20201000050F202
20:15:46.067801   wlan0    Association Response IEs:010882848B962430486C32040C121860DD06001018010000
20:15:46.067894   wlan0    New Access Point/Cell address:00:0F:B5:25:BC:9A
20:15:51.370928   wlan0    Association Request IEs:000542454C4C41010402040B1632080C1218243048606CDD160050F20101000050F20201000050F20201000050F202
20:15:51.371140   wlan0    Association Response IEs:010882848B962430486C32040C121860DD06001018010000
20:15:51.371233   wlan0    New Access Point/Cell address:00:0F:B5:25:BC:9A
20:15:54.623741   wlan0    New Access Point/Cell address:Not-Associated

Offline

#6 2008-05-14 21:58:04

sphetr2
Member
Registered: 2008-05-07
Posts: 16

Re: Having trouble with ndiswrapper/wpa_supplicant/netcfg2

bump

Offline

#7 2008-05-15 08:29:16

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: Having trouble with ndiswrapper/wpa_supplicant/netcfg2

Similar issue shown here
http://bbs.archlinux.org/viewtopic.php? … 79#p366579

Tell me if this works, adjust as neccessary:

wpa_passphrase MYSSID MYPASSPHRASE >> /etc/wpa_supplicant.conf

iwconfig wlan0 mode managed essid foobard channel 6
ifconfig wlan0 up
wpa_supplicant -D wext -i wlan0 -c /etc/wpa_supplicant.conf -dddd
dhcpd wlan0

Offline

#8 2008-05-15 14:28:15

ybotspawn
Member
From: Oz
Registered: 2008-04-06
Posts: 140

Re: Having trouble with ndiswrapper/wpa_supplicant/netcfg2

do yourself a favor... follow the instructions for network manager.... http://wiki.archlinux.org/index.php/Networkmanager
and it will handle the wpa portion for you.


"As long as people are going to call you a lunatic anyway,
why not get the benefit of it? It liberates you from convention. "

Offline

#9 2008-05-15 22:36:32

sphetr2
Member
Registered: 2008-05-07
Posts: 16

Re: Having trouble with ndiswrapper/wpa_supplicant/netcfg2

iphitus wrote:

Similar issue shown here
http://bbs.archlinux.org/viewtopic.php? … 79#p366579

Tell me if this works, adjust as neccessary:

wpa_passphrase MYSSID MYPASSPHRASE >> /etc/wpa_supplicant.conf

iwconfig wlan0 mode managed essid foobard channel 6
ifconfig wlan0 up
wpa_supplicant -D wext -i wlan0 -c /etc/wpa_supplicant.conf -dddd
dhcpd wlan0

thanks, ill try that later tonight.
do you think its a problem if my key has '!!' in it? i dont think i can run wpa_passphrase with that in there...

Offline

#10 2008-05-18 14:39:01

sphetr2
Member
Registered: 2008-05-07
Posts: 16

Re: Having trouble with ndiswrapper/wpa_supplicant/netcfg2

Yea, it is (a problem). Is there any way I can generate a passphrase if my key has '!!' in it? Like disabling command history temporarily or something?

I would change the key but I don't have the router password atm.

Offline

#11 2008-05-21 00:42:40

sphetr2
Member
Registered: 2008-05-07
Posts: 16

Re: Having trouble with ndiswrapper/wpa_supplicant/netcfg2

ybotspawn wrote:

do yourself a favor... follow the instructions for network manager.... http://wiki.archlinux.org/index.php/Networkmanager
and it will handle the wpa portion for you.

Maybe as a last resort...but that's not really the arch way!

Anyways, I got the password to the router and changed the key to something more linux-friendly.

wpa_supplicant -D wext -i wlan0 -c /etc/wpa_supplicant.conf -dddd

stops at "EAPOL: startWhen --> 0" (and eventually shows "Ignore event for foreign ifindex 2").

Any thoughts, comrade?

Last edited by sphetr2 (2008-05-21 00:48:26)

Offline

#12 2008-05-21 08:44:45

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: Having trouble with ndiswrapper/wpa_supplicant/netcfg2

Change -Dwext to -Dndiswrapper

Offline

#13 2008-05-21 22:31:39

sphetr2
Member
Registered: 2008-05-07
Posts: 16

Re: Having trouble with ndiswrapper/wpa_supplicant/netcfg2

that didn't work

networkmanager does though.

thanks for all the help.

Offline

Board footer

Powered by FluxBB