Debian unstable (2.6.24 or 2.6.25), WPA, getting frustrated

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

quindo

02-05-2008 20:29:57

Hello.
I'm trying to get my Ralink rt2500 pcmcia card working under Debian (unstable).
When using kernel 2.6.24 I compiled (with module-assistant) the rt2500 module.
[code21isrhjw]# lsmod | grep rt
rt2500 156260 0
rt2500pci 18656 0
rt2x00pci 9920 1 rt2500pci
rt2x00lib 20000 2 rt2500pci,rt2x00pci
rfkill 7312 1 rt2x00lib
input_polldev 5000 1 rt2x00lib
mac80211 114380 3 rt2500pci,rt2x00pci,rt2x00lib
eeprom_93cx6 2304 1 rt2500pci
firmware_class 9312 2 rt2x00lib,pcmcia
parport_pc 33668 1
parport 34280 3 ppdev,lp,parport_pc
rtc 13052 0
agpgart 31688 1 intel_agp
crc_itu_t 2176 2 rt2x00lib,firewire_core
[/code21isrhjw]
When I use network-manager it doesn't show me any networks ans I can't configure it with the Gui.
Using rutilt I scan and see my network but is shows at WEP instead of WPA.
I can't seem to make a ?profile? with WPA, only with WEP.
using iwlist I see
[code21isrhjw]# iwlist wlan0 scan
wlan0 Scan completed :
Cell 01 - Address: 00:12:17:15:E8:BA
ESSID:"pieter"
Mode:Master
Channel:1
Frequency:2.412 GHz (Channel 1)
Quality=50/100 Signal level=-57 dBm
Encryption key:on
IE: WPA Version 1
Group Cipher : TKIP
Pairwise Ciphers (1) : TKIP
Authentication Suites (1) : PSK
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 18 Mb/s
24 Mb/s; 36 Mb/s; 54 Mb/s; 6 Mb/s; 9 Mb/s
12 Mb/s; 48 Mb/s
Extra:tsf=00000008dd4aa90f
[/code21isrhjw]
It detects WPA without any trouble.

Using iwpriv to configure it from the commandline I get
[code21isrhjw]
# iwpriv wlan0 set AuthMode=WPAPSK
wlan0 no private ioctls.
[/code21isrhjw]

Using kernel 2.6.25 I get the same errors (using the supplied rt2500 driver, no compile needed).

I've tried to compile the beta drivers from the site but keep running in to compile errors (already deleted the config.h include)
[code21isrhjw]
/tmp/rt2500-1.1.0-b4/Module# make
make[1]: Map '/usr/src/linux-headers-2.6.24-1-686' wordt binnengegaan
CC [M] /tmp/rt2500-1.1.0-b4/Module/rtmp_main.o
/tmp/rt2500-1.1.0-b4/Module/rtmp_main.c: In function ‘RT2500_probe’:
/tmp/rt2500-1.1.0-b4/Module/rtmp_main.c:203: error: implicit declaration of function ‘SET_MODULE_OWNER’
/tmp/rt2500-1.1.0-b4/Module/rtmp_main.c: In function ‘RT2500_open’:
/tmp/rt2500-1.1.0-b4/Module/rtmp_main.c:343: error: ‘SA_SHIRQ’ undeclared (first use in this function)
/tmp/rt2500-1.1.0-b4/Module/rtmp_main.c:343: error: (Each undeclared identifier is reported only once
/tmp/rt2500-1.1.0-b4/Module/rtmp_main.c:343: error: for each function it appears in.)
/tmp/rt2500-1.1.0-b4/Module/rtmp_main.c:343: warning: passing argument 2 of ‘request_irq’ from incompatible pointer type
/tmp/rt2500-1.1.0-b4/Module/rtmp_main.c: In function ‘rt2500_resume’:
/tmp/rt2500-1.1.0-b4/Module/rtmp_main.c:947: warning: ignoring return value of ‘pci_enable_device’, declared with attribute warn_unused_result
/tmp/rt2500-1.1.0-b4/Module/rtmp_main.c: In function ‘rt2500_init_module’:
/tmp/rt2500-1.1.0-b4/Module/rtmp_main.c:1009: error: implicit declaration of function ‘pci_module_init’
make[2]: *** [/tmp/rt2500-1.1.0-b4/Module/rtmp_main.o] Fout 1
make[1]: *** [_module_/tmp/rt2500-1.1.0-b4/Module] Fout 2
make[1]: Map '/usr/src/linux-headers-2.6.24-1-686' wordt verlaten
rt2500.ko failed to build!
make: *** [module] Fout 1
[/code21isrhjw]

Anyone got any ideas what I can do to get this working?

IvD

02-05-2008 20:57:11

If you use rt2x00 use iwconfig, wpa_supplicant or networkmanager to configure your interface
If you use legacy driver use iwconfig, iwpriv or rutilt.
As for the compile error, don't use the beta, but the cvs nightly snapshot from our download page