rt2500 pci and wpa_supplicant

Live forum: http://rt2x00.serialmonkey.com/viewtopic.php?t=4369

darkbasic

19-10-2007 19:07:58

Hi! I installed rt2x00 from debian sid repository ([url1ed70mey]http://packages.debian.org/sid/rt2x00-source[/url1ed70mey]) with modules-assistant and I edited /etc/udev/rules.d/z25_persistent-net.rules.
The card works properly without encryption, but if I enable wpa, I got those errors
[code1ed70mey]# wpa_supplicant -Dwext -ira0 -c/etc/wpa_supplicant/wpasupplicant.conf
ioctl[SIOCSIWAUTH]: Operation not supported
WEXT auth param 4 value 0x0 - ioctl[SIOCSIWAUTH]: Operation not
supported
WEXT auth param 5 value 0x1 - ioctl[SIOCGIWSCAN]: Resource temporarily
unavailable
Trying to associate with <myMAC> (SSID='myssid' freq=2437 MHz)
ioctl[SIOCSIWAUTH]: Operation not supported
WEXT auth param 5 value 0x1 - Authentication with 00:00:00:00:00:00
timed out.
Trying to associate with <myMAC> (SSID='myssid' freq=2437 MHz)
ioctl[SIOCSIWAUTH]: Operation not supported
WEXT auth param 5 value 0x1[/code1ed70mey]

This is my wpa_supplicant.conf
[code1ed70mey]network={
ssid="myssid"
scan_ssid=0
proto=WPA
psk="mypassword"
}[/code1ed70mey]

Kernel version is 2.6.22 ([url1ed70mey]http://packages.debian.org/sid/linux-image-2.6.22-2-686[/url1ed70mey])

AdamBaker

19-10-2007 19:57:18

It is very hard to tell exactly what is shipped by distros who are currently picking out one version of mac80211 and possibly different versions of the accompanying drivers.

There was a bug in mac80211 a few weeks back that caused any driver using software decryption (which includes all rt2x00 devices) to fail to decrypt.

If that's the problem you've got you might be able to track down the post from Mattias Nissler titled [Rt2400-devel] [PATCH] mac80211 Defer setting of RX_FLAG_DECRYPTED posted 07/10/2007 1535 that contains the patch.

zorxd

20-10-2007 22:32:28

I am also using Debian packages, wpa_supplicant and rt2500pci and it works for me.
Instead of editing udev rules, I added the option wpa-roam /etc/wpa_supplicant.conf in my /etc/network/interfaces file.

Anyways I would suggest that you try to use wpa_supplicant by hand first.

bodymind

22-10-2007 16:27:53

I'm runing this script for wpa supplicant

[codeqt1delc2]ctrl_interface=/var/run/wpa_supplicant

network={
ssid="eduroam"
key_mgmt=WPA-EAP
auth_alg=OPEN
eap=TTLS
phase2="auth=MSCHAPV2"
identity="lXXXX@alunos.uevora.pt"
anonymous_identity="lXXXXX@alunos.uevora.pt"
password="12345"
ca_cert="./uevora_ca.pem"
}
[/codeqt1delc2]
but i keep getting this error
[codeqt1delc2]
$ sudo wpa_supplicant -Dwext -ira0 -ceduroam.conf
ioctl[SIOCSIWAUTH]: Operation not supported
WEXT auth param 7 value 0x1 - ioctl[SIOCSIWENCODEEXT]: Operation not supported
ioctl[SIOCSIWENCODEEXT]: Operation not supported
ioctl[SIOCSIWENCODEEXT]: Operation not supported
ioctl[SIOCSIWENCODEEXT]: Operation not supported
ioctl[SIOCSIWAUTH]: Operation not supported
WEXT auth param 4 value 0x0 - ioctl[SIOCSIWAUTH]: Operation not supported
WEXT auth param 5 value 0x1 - CTRL-EVENT-TERMINATING - signal 2 received
ioctl[SIOCSIWAUTH]: Operation not supported
WEXT auth param 7 value 0x0 - Failed to disable WPA in the driver.
ioctl[SIOCSIWAUTH]: Operation not supported
WEXT auth param 5 value 0x0 - ioctl[SIOCSIWAUTH]: Operation not supported
WEXT auth param 4 value 0x0 -
[/codeqt1delc2]

how can i pass this through?

Thank for your replies lol lol

bodymind

24-10-2007 17:05:51

i've installed ndiswrapper to get it working!

thank for your lack of support... evil

Amp_God

24-10-2007 17:26:00

i've installed ndiswrapper to get it working!

thank for your lack of support... evil[/quoten6z07q8l]

I am using Debian 4.0

/etc/network/interfaces
[coden6z07q8l]
# Wireless / iNTERNET ##
allow-hotplug wlan0
iface wlan0 inet manual
wpa-driver wext
wpa-roam /etc/wpa_supplicant.conf

iface default inet dhcp
[/coden6z07q8l]

/etc/wpa_supplicant.conf
[coden6z07q8l]
network={
ssid="*HIDDEN*"
proto=WPA
key_mgmt=WPA-PSK
pairwise=TKIP
psk="*HIDDEN*"
priority=10
}

network={
ssid="*HIDDEN*"
key_mgmt=NONE
wep_key0="*HIDDEN*"
priority=5
}
[/coden6z07q8l]

Kernel
Linux ThunderBird 2.6.23 #1 Wed Oct 10 214105 EEST 2007 i686 GNU/Linux

[coden6z07q8l]
wpasupplicant 0.5.5-2
[/coden6z07q8l]

[coden6z07q8l]
wlan0 IEEE 802.11b ESSID:"*HIDDEN*"
Mode:Managed Frequency:2.432 GHz Access Point: 00:0D:0B:CB:94:1D
Bit Rate=11 Mb/s Tx-Power=27 dBm
Retry min limit:7 RTS thr:off Fragment thr=2346 B
Encryption key:****-****-****-****-****-****-**
Link Quality=88/100 Signal level=-72 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
[/coden6z07q8l]

Of course with a custom kernel it works like a charm )
+ didnt have to edit anything else exept interfaces & wpa_supplicant.conf )