rt73 ap mode broken?

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

blind_oracle

18-01-2011 21:02:38

AP mode on my RT73 USB stick worked for almost two years, and it broke somewhere after 2.6.35 kernel or so.
The weird thing is that i can put device into AP mode, i can authenticate to AP
[code2c63fm3z]
Jan 18 23:21:44 htpc hostapd: wlan1: STA 00:21:09:06:c8:2c IEEE 802.11: authentication OK (open system)
Jan 18 23:21:44 htpc hostapd: wlan1: STA 00:21:09:06:c8:2c MLME: MLME-AUTHENTICATE.indication(00:21:09:06:c8:2c, OPEN_SYSTEM)
Jan 18 23:21:44 htpc hostapd: wlan1: STA 00:21:09:06:c8:2c MLME: MLME-DELETEKEYS.request(00:21:09:06:c8:2c)
Jan 18 23:21:44 htpc hostapd: wlan1: STA 00:21:09:06:c8:2c IEEE 802.11: authenticated
Jan 18 23:21:44 htpc hostapd: wlan1: STA 00:21:09:06:c8:2c IEEE 802.11: association OK (aid 1)
Jan 18 23:21:44 htpc hostapd: wlan1: STA 00:21:09:06:c8:2c IEEE 802.11: associated (aid 1)
Jan 18 23:21:44 htpc hostapd: wlan1: STA 00:21:09:06:c8:2c MLME: MLME-ASSOCIATE.indication(00:21:09:06:c8:2c)
Jan 18 23:21:44 htpc hostapd: wlan1: STA 00:21:09:06:c8:2c MLME: MLME-DELETEKEYS.request(00:21:09:06:c8:2c)
Jan 18 23:21:44 htpc hostapd: wlan1: STA 00:21:09:06:c8:2c WPA: event 1 notification
Jan 18 23:21:44 htpc hostapd: wlan1: STA 00:21:09:06:c8:2c WPA: start authentication
Jan 18 23:21:44 htpc hostapd: wlan1: STA 00:21:09:06:c8:2c IEEE 802.1X: unauthorizing port
Jan 18 23:21:44 htpc hostapd: wlan1: STA 00:21:09:06:c8:2c WPA: sending 1/4 msg of 4-Way Handshake
Jan 18 23:21:44 htpc hostapd: wlan1: STA 00:21:09:06:c8:2c WPA: received EAPOL-Key frame (2/4 Pairwise)
Jan 18 23:21:44 htpc hostapd: wlan1: STA 00:21:09:06:c8:2c WPA: sending 3/4 msg of 4-Way Handshake
Jan 18 23:21:44 htpc hostapd: wlan1: STA 00:21:09:06:c8:2c WPA: received EAPOL-Key frame (4/4 Pairwise)
Jan 18 23:21:44 htpc hostapd: wlan1: STA 00:21:09:06:c8:2c IEEE 802.1X: authorizing port
Jan 18 23:21:44 htpc hostapd: wlan1: STA 00:21:09:06:c8:2c RADIUS: starting accounting session 4D35F644-00000000
Jan 18 23:21:44 htpc hostapd: wlan1: STA 00:21:09:06:c8:2c WPA: pairwise key handshake completed (RSN)
[/code2c63fm3z]
and LED blinks on it,
but i just CAN'T GET TRAFFIC THROUGH )
DHCP isn't working, static ip's too.
tcpdump shows no traffic except for EAPOL frames.
What's wrong with it? Am i doing something wrong? It worked fine before.
I'm using latest 2.6.37 kernel.
Thanks!

blind_oracle

19-01-2011 07:36:49

Well, here is the deal
No encryption - works OK
WPA - doesn't authenticate at all (hostapd shows EAPOL-Key timeout or something like that)
WPA2/RSN - authenicates OK, but no traffic through.

And after f*cking with it for some time, i tried 'modinfo rt73usb' and surprise, there is one module option - 'nohwcrypt'.
After setting it to 1 device starts to work like a charm. I've not measured performance yet, but i think that it shouldn't load CPU too high even if the data is encrypted in software.

Maybe that will help someone.

Anyway, what was it? I've got hw encryption part of stick broken? Or a broken driver?

tremere

27-02-2011 11:55:31

Thanks! nohwcrypt works.

I wrote a tutorial[/url21zqf9da] on rt73usb and I had to use a rt2x00 git kernel from November (to get it going without nohwcrypt). I've been told by someone else that later rt2x00 does not work, and I've tested 2.6.38-rc6 as well.