no private ioctls

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

PageFault

25-04-2008 12:15:13

Hello there!

I am trying to get my RaLink Rt2400/2460 PCMCIA-Device to work with Gentoo 2007.1.
I already got the cvs-build of rt2x00 working but
When I try scanning it tells me
[quotej7xehmwa]
# iwlist ra0 scan
ra0 Interface doesn't support scanning.
[/quotej7xehmwa]

Okay - not a real problem, because with RtUtil I can scan for my network.
So I tried bringing it up manually
[quotej7xehmwa]
# iwconfig ra0 channel 5
# iwconfig ra0 essid WirelessNet01
# iwconfig ra0
iwconfig ra0
ra0 RT2400PCI ESSID"WirelessNet01"
ModeManaged Channel=5 Bit Rate11 Mb/s
RTS throff Fragment throff
Encryption keyoff
[/quotej7xehmwa]
Okay - up to here it looks nice...
But when I try to apply WPA-PSK Encryption this happens

[quotej7xehmwa]
#iwpriv ra0 set AuthMode=WPA-PSK
ra0 no private ioctls.
[/quotej7xehmwa]
I also tried using quotes around WPA-PSK. Same effect.

I also tried using wpa_supplicant
[quotej7xehmwa]
wpa_supplicant -ira0 -Dwext -c/etc/wpa_supplicant/wpa_supplicant.conf
ioctl[SIOCGIWRANGE] Operation not supported
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 - ioctl[SIOCGIWAP] Transport endpoint is not connected
Could not read BSSID from driver.
[/quotej7xehmwa]
My /etc/wpa_supplicant/wpa_supplicant.conf is this
[codej7xehmwa]
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0

ap_scan=0

#The Network:
network={
ssid="WirelessNin"
scan_ssid=1
psk="05ILDd07"
proto=WPA
key_mgmt=WPA-PSK
priority=5
}
[/codej7xehmwa]
When I try to set ap_scan=1 I get a result similar to the one with ap_scan=0 but complaining about "Failed to initiate AP Scan."

What am I doing wrong - and sorry, if this is a simple problem I am new to using WLAN with Linux )
Thanks in advance for any advice!

IvD

25-04-2008 18:13:51


I already got the cvs-build of rt2x00 working but
[/quoten7clv6xm]

That isn't possible due to the simple fact that rt2x00 isn't in cvs.
So you are either using the rt2400 legacy driver or the in-kernel rt2x00 driver.


When I try scanning it tells me
[quoten7clv6xm]
# iwlist ra0 scan
ra0 Interface doesn't support scanning.
[/quoten7clv6xm]
[/quoten7clv6xm]

So you are using the rt2400 legacy driver.
That hasn't implemented the iwlist command.


Okay - not a real problem, because with RtUtil I can scan for my network.
So I tried bringing it up manually
[quoten7clv6xm]
# iwconfig ra0 channel 5
# iwconfig ra0 essid WirelessNet01
# iwconfig ra0
iwconfig ra0
ra0 RT2400PCI ESSID"WirelessNet01"
ModeManaged Channel=5 Bit Rate11 Mb/s
RTS throff Fragment throff
Encryption keyoff
[/quoten7clv6xm]
Okay - up to here it looks nice...
But when I try to apply WPA-PSK Encryption this happens

[quoten7clv6xm]
#iwpriv ra0 set AuthMode=WPA-PSK
ra0 no private ioctls.
[/quoten7clv6xm]
I also tried using quotes around WPA-PSK. Same effect.

I also tried using wpa_supplicant
[quoten7clv6xm]
wpa_supplicant -ira0 -Dwext -c/etc/wpa_supplicant/wpa_supplicant.conf
ioctl[SIOCGIWRANGE] Operation not supported
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 - ioctl[SIOCGIWAP] Transport endpoint is not connected
Could not read BSSID from driver.
[/quoten7clv6xm]
My /etc/wpa_supplicant/wpa_supplicant.conf is this
[coden7clv6xm]
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0

ap_scan=0

#The Network:
network={
ssid="WirelessNin"
scan_ssid=1
psk="05ILDd07"
proto=WPA
key_mgmt=WPA-PSK
priority=5
}
[/coden7clv6xm]
When I try to set ap_scan=1 I get a result similar to the one with ap_scan=0 but complaining about "Failed to initiate AP Scan."

What am I doing wrong - and sorry, if this is a simple problem I am new to using WLAN with Linux )
Thanks in advance for any advice![/quoten7clv6xm]

Legacy rt2400 driver doesn't support wpa_supplicant or WPA.
Your only option is to use the in-kernel rt2x00 driver in combination with wpa_supplicant.

PageFault

26-04-2008 18:11:01

Thank you for your reply...
how do I use "in-kernel rt2x00"? oO

IvD

26-04-2008 18:13:17

Make sure you have a 2.6.24 or 2.6.25 kernel, recompile it and make sure that you have CONFIG_MAC80211 and CONFIG_RT2400PCI enabled.

After that simply use wpa_supplicant or whatever configuration tool you prefer (except iwpriv) to configure your interface.

PageFault

26-04-2008 18:19:47

o Wow. Thanks for the lightning-like answer and for this nice description.
I will try this D
Thousand times "Thank you!" D
Keep up the good work!!

GreetZ PageFault