CVS rt73 not working with wpa_supplicant

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

ggking7

03-01-2008 03:08:25

I'm using the latest CVS version of the rt73 driver but when I try to start wpa_supplicant I get the following

Starting wpa_supplicant on wlan0 ...
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 [ ok ]th param 5 value 0x1 -
* Starting wpa_cli on wlan0 ...

I've done a lot of searching and this problem has been reported but there is no solution.

IvD

03-01-2008 18:54:44

Those are only warnings and can be ignored.

ggking7

03-01-2008 20:58:47

I'm able to connect perfectly without encryption, but via wpa_supplicant it won't connect. Running 'wpa_supplicant -d -iwlan0 -c/etc/wpa_supplicant/wpa_supplicant.conf' I get

WEXT auth param 7 value 0x1 - Driver does not support WPA.

I used a Gentoo ebuild to install rt73 which pulls from CVS like this

cvs -q -f -z1 -d "pserveranonymous@rt2400.cvs.sourceforge.net/cvsroot/rt2400" update -dP rt73-9999

Is that up to date?

IvD

03-01-2008 22:02:13

You should use the rt73 driver for wpa_supplicant, and not the standard version. Check your wpa_supplicant for additional driver modules.

ggking7

03-01-2008 22:21:58

'man wpa_supplicant' lists the same driver possibilities in 0.5.7 and 0.6.1 and there is no match for rt73

AVAILABLE DRIVERS
The available drivers to specify with the -D option are

hostap (default) Host AP driver (Intersil Prism2/2.5/3). (this can also be used with Linuxant
DriverLoader).

hermes Agere Systems Inc. driver (Hermes-I/Hermes-II).

madwifi
MADWIFI 802.11 support (Atheros, etc.).

atmel ATMEL AT76C5XXx (USB, PCMCIA).

wext Linux wireless extensions (generic).

ndiswrapper
Linux ndiswrapper.

broadcom
Broadcom wl.o driver.

ipw Intel ipw2100/2200 driver.

wired wpa_supplicant wired Ethernet driver

bsd BSD 802.11 support (Atheros, etc.).

ndis Windows NDIS driver.

I've tried specifying -Dwext with my wpa_supplicant command with the same results.

IvD

03-01-2008 22:25:56

Could you download the rt61 driver and grab the wpa_supplicant module in there. I *think* that module will work for rt73 as well.
You can find the module in the WPA_Supplicant folder.

ggking7

03-01-2008 22:38:13

I'm in the folder but I'm not sure what to do with the files. Do you know what I should put where?

ggking7

04-01-2008 00:35:03

I'm having some luck with the built-in 2.6.24 support so I guess I'll switch to that.

cyclon

04-01-2008 08:38:02

1. Download http//www.ralinktech.com.tw/data/RT73_ ... 4.0.tar.gz
and extract it.
2. Download http//hostap.epitest.fi/releases/wpa_s ... 5.9.tar.gz
and extract it.
3. Copy driver_ralink.c, driver_ralink.h from RT73_Linux_STA_Drv1.0.4.0/WPA_Supplicant/ to
wpa_supplicant-0.5.9/
4. Go to wpa_supplicant-0.5.9/

4.1 add to drivers.c

[code10dgvdwh]
// after this line
#endif /* CONFIG_DRIVER_MADWIFI */

// --cut here--
#ifdef CONFIG_DRIVER_RALINK
extern struct wpa_driver_ops wpa_driver_ralink_ops; /* driver_ralink.c */
#endif /* CONFIG_DRIVER_RALINK */
// -- end --
[/code10dgvdwh]
and this
[code10dgvdwh]
// after this line
struct wpa_driver_ops *wpa_supplicant_drivers[] =
{

// -- cut here --
#ifdef CONFIG_DRIVER_RALINK
&wpa_driver_ralink_ops,
#endif /* CONFIG_DRIVER_RALINK */
// -- end --
[/code10dgvdwh]

4.2 Some changes in Makefile

[code10dgvdwh]
//after this block
ifdef CONFIG_DRIVER_MADWIFI
CFLAGS += -DCONFIG_DRIVER_MADWIFI
OBJS_d += driver_madwifi.o
CONFIG_WIRELESS_EXTENSION=y
endif

// -- cut here --
ifdef CONFIG_DRIVER_RALINK
CFLAGS += -DCONFIG_DRIVER_RALINK
OBJS_d += driver_ralink.o
CONFIG_WIRELESS_EXTENSION=y
endif
// -- end --
[/code10dgvdwh]

4.3 Add to defconfig
[code10dgvdwh]
CONFIG_DRIVER_RALINK=y
[/code10dgvdwh]

After this do standart setup.

After setup run

[code10dgvdwh]
wpa_supplicant -D ralink -c /path/to/config -i wlan0
[/code10dgvdwh]

ggking7

04-01-2008 15:30:05

Very nice. I'm sure that would come in handy when using the legacy drivers. In-kernel 2.6.24 drivers also work great with an unpatched wpa_supplicant-0.5.7 as long as you provide firmware in /lib/firmware. The legacy rt73 firmware works great.