rt2570 with WPA-PSK

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

J13R

03-07-2008 14:10:01

Hi, I have a "Belkin Components F5D7050 ver 1000 WiFi", which is a wifi usb stick.

I tried rt73, which recognises the device but lists no scan results. (cvs-2008070205)
The rt2570 driver seems to work, scan lists my wpa network. (cvs-2008070205)

wpa_supplicant prints out a lot of "Operation not supported", for ioctl[SIOCSIWENCODEEXT] and ioctl[SIOCSIWAUTH].

I also tried [codel92nnhtk]e ~ # ifconfig wlan0 up
e ~ # iwpriv wlan0 auth 3
e ~ # iwpriv wlan0 enc 3
e ~ # iwconfig wlan0 essid $essid
e ~ # iwpriv wlan0 wpapsk $key
e ~ # iwconfig wlan0 essid $essid
e ~ # pump -i wlan0[/codel92nnhtk] (from [urll92nnhtk]http://rt2x00.serialmonkey.com/phpBB/viewtopic.php?f=4&t=4785&p=29674[/urll92nnhtk]) which seems to kill the module after some seconds, making my keyboard unusable and I can't shutdown cleanly anymore (I assume some kernel parts freeze or crash).

my wpa_supplicant.conf [codel92nnhtk]ctrl_interface=/var/run/wpa_supplicant
eapol_version=1
ap_scan=2

network={
ssid="myessid"
proto=WPA
# scan_ssid=1
key_mgmt=WPA-PSK
pairwise=TKIP
group=TKIP
psk="mykey"
}
[/codel92nnhtk]

Is WPA generally supported? Can someone give me a example?
Shall I try the new rt2x00 drivers? (are they advanced enough?)

Regards,
J13R

----

[codel92nnhtk]WEXT auth param 6 value 0x1 - WPA: No WPA/RSN IE available from association info
WPA: Set cipher suites based on configuration
WPA: Selected cipher suites: group 8 pairwise 8 key_mgmt 2 proto 1
WPA: clearing AP WPA IE
WPA: clearing AP RSN IE
WPA: using GTK TKIP
WPA: using PTK TKIP
WPA: using KEY_MGMT WPA-PSK
WPA: Set own WPA IE default - hexdump(len=24): dd 16 00 50 f2 01 01 00 00 50 f2 02 01 00 00 50 f2 02 01 00 00 50 f2 02
No keys have been configured - skip key clearing
wpa_driver_wext_set_drop_unencrypted
ioctl[SIOCSIWAUTH]: Operation not supported
WEXT auth param 5 value 0x1 - State: SCANNING -> ASSOCIATING
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
WEXT: Operstate: linkmode=-1, operstate=5
wpa_driver_wext_associate
WEXT: Driver did not support SIOCSIWAUTH for AUTH_ALG, trying SIOCSIWENCODE
ioctl[SIOCSIWGENIE]: Operation not supported
ioctl[SIOCSIWAUTH]: Operation not supported
WEXT auth param 0 value 0x2 - ioctl[SIOCSIWAUTH]: Operation not supported
WEXT auth param 1 value 0x4 - ioctl[SIOCSIWAUTH]: Operation not supported
WEXT auth param 2 value 0x4 - ioctl[SIOCSIWAUTH]: Operation not supported
WEXT auth param 3 value 0x2 - ioctl[SIOCSIWAUTH]: Operation not supported
WEXT auth param 10 value 0x1 - ioctl[SIOCSIWAUTH]: Operation not supported
WEXT auth param 8 value 0x0 - Association request to the driver failed
Setting authentication timeout: 5 sec 0 usec
EAPOL: External notification - EAP success=0
EAPOL: External notification - EAP fail=0
EAPOL: External notification - portControl=Auto
RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])
Wireless event: cmd=0x8b2a len=8
RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])
Wireless event: cmd=0x8b06 len=8
RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])
Wireless event: cmd=0x8b1a len=14
CTRL-EVENT-TERMINATING - signal 2 received
Removing interface wlan0
State: ASSOCIATING -> DISCONNECTED
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
WEXT: Operstate: linkmode=-1, operstate=5
No keys have been configured - skip key clearing
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
wpa_driver_wext_set_wpa
ioctl[SIOCSIWAUTH]: Operation not supported
WEXT auth param 7 value 0x0 - Failed to disable WPA in the driver.
wpa_driver_wext_set_drop_unencrypted
ioctl[SIOCSIWAUTH]: Operation not supported
WEXT auth param 5 value 0x0 - wpa_driver_wext_set_countermeasures
ioctl[SIOCSIWAUTH]: Operation not supported
WEXT auth param 4 value 0x0 - No keys have been configured - skip key clearing
[/codel92nnhtk]

Starcrasher

03-07-2008 18:54:28

Hi J13R,
The rt2570 legacy driver doesn't work with wpa_supplicant. The driver has WPA support but you have to use iwpriv and iwconfig instead. For more informations see iwpriv_usage.txt provided in the archive of the driver.
Another possibility is to use RutilT.

If you need to use wpa_supplicant for whatever reason, you should use the new rt2x00 driver.

If you have both drivers installed, make sure they are not both loaded at same time.
In other words rt2570 and rt2500usb must not appear at same time in output of the command /sbin/lsmod | grep rt[/color14b43cne]

J13R

03-07-2008 21:34:58

Hi Starcrasher, thanks for your answer!
The rt2570 legacy driver doesn't work with wpa_supplicant. The driver has WPA support but you have to use iwpriv and iwconfig instead. For more informations see iwpriv_usage.txt provided in the archive of the driver. [/quote1ljc4t7m]
I just read this, but still - it hangs my kernel. Might be because I use hardened (gentoo) linux-sources (though I don't know why that would matter).

Another possibility is to use RutilT.

If you need to use wpa_supplicant for whatever reason, you should use the new rt2x00 driver.[/quote1ljc4t7m]
I will try those, thanks for the advice.

If you have both drivers installed, make sure they are not both loaded at same time.
In other words rt2570 and rt2500usb must not appear at same time in output of the command /sbin/lsmod | grep rt[/color1ljc4t7m][/quote1ljc4t7m]
That's definitly not the case.