Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 207699 - rt61pci in gentoo-sources-2.6.24 is not supporting private ioctls
Summary: rt61pci in gentoo-sources-2.6.24 is not supporting private ioctls
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-27 16:10 UTC by Martin Kramer
Modified: 2008-01-28 14:08 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Kramer 2008-01-27 16:10:09 UTC
I've upgraded to gentoo-sources-2.6.24 yesterday, which finally implements the rt2x00pci and rt61pci in the kernel itself. 
The driver is working pretty well, but it seams that there is a problem with private ioctls. 

iwpriv wlan0 just gives "wlan0      no private ioctls."

wpa_supplicant fails with: 
ioctl[SIOCSIWAUTH]: Operatoin not supported
WEXT auth param 4 value 0x0 - ioctl[SIOCSIWAUTH]: Operation not supported
WEXT auth param 5 value 0x1 -

This makes associating with WPA-PSK TKIP APs impossible.

Reproducible: Always

Steps to Reproduce:
1.Upgrade to gentoo-sources-2.6.24 and compile rt61pci (as module or built in)
2.Reboot and enter iwpriv wlan0
3.

Actual Results:  
wlan0      no private ioctls

Expected Results:  
Listing of supportetd private ioctls

Associating with APs not using encryption seems works.
Comment 1 Adrian Bassett 2008-01-27 16:48:40 UTC
(In reply to comment #0)
> I've upgraded to gentoo-sources-2.6.24 yesterday, which finally implements the
> rt2x00pci and rt61pci in the kernel itself. 
> The driver is working pretty well, but it seams that there is a problem with
> private ioctls. 
> 
> iwpriv wlan0 just gives "wlan0      no private ioctls."
> 
> wpa_supplicant fails with: 
> ioctl[SIOCSIWAUTH]: Operatoin not supported
> WEXT auth param 4 value 0x0 - ioctl[SIOCSIWAUTH]: Operation not supported
> WEXT auth param 5 value 0x1 -
> 
> This makes associating with WPA-PSK TKIP APs impossible.
> 
> Reproducible: Always
> 
> Steps to Reproduce:
> 1.Upgrade to gentoo-sources-2.6.24 and compile rt61pci (as module or built in)
> 2.Reboot and enter iwpriv wlan0
> 3.
> 
> Actual Results:  
> wlan0      no private ioctls
> 
> Expected Results:  
> Listing of supportetd private ioctls
> 
> Associating with APs not using encryption seems works.
> 

I imagine this driver should work with WPA, despite the lack of private ioctls.

I'm not personally using the driver you refer to but, instead, the Realtek 8180/8185 PCI driver currently in development at linuxwireless.org and scheduled for inclusion in 2.6.25.  The wireless git code I'm using is currently based on 2.6.24-rc8 so no difference of note.

This driver does not have support for SIOCSIWAUTH either (very few of the wireless drivers do:  grep /usr/src/linux/drivers/net/wireless/* for this and you will see what I mean).  iwconfig also reports 'no private ioctls' for wlan0 yet it works with a WPA-TKIP:

wlan0     IEEE 802.11g  ESSID:"XXXXXXXXXX"  
          Mode:Managed  Frequency:2.412 GHz  Access Point: 00:11:22:33:44:55   
          Bit Rate=54 Mb/s   Tx-Power=27 dBm   
          Retry min limit:7   RTS thr:off   Fragment thr=2352 B   
          Encryption key: <deleted> [3]
          Link Signal level=15/65  
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

You might like to check the version of wpa_supplicant you are using (I'm currently on 0.6.2 which is not in portage yet but has a useful 'debug to file' facility, but have also had success with 0.6.1).  Also your config in /etc/wpa/wpa_supplicant.conf.

The following scheme works for me:

ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
ap_scan=1
fast_reauth=1
update_config=1

network={
     priority=0
     ssid="XXXXXXXX"
     bssid=00:11:22:33:44:55
     group=TKIP
     mode=0
     key_mgmt=WPA-PSK
     proto=WPA
     psk="<deleted>"
     scan_ssid=1
     pairwise=CCMP
}

Comment 2 Daniel Drake (RETIRED) gentoo-dev 2008-01-27 18:25:21 UTC
Yep, private ioctls are not needed for WPA, since WPA isn't specific to any one wireless card :)

Use the Wext wpa_supplicant protocol and everything should work fine.
Comment 3 Martin Kramer 2008-01-27 21:54:51 UTC
Well I was able to get connected. now. Ihad to unmask wpa_supplicant-0.6.1.
I am still getting messages about SIOCSIWAUTH Operation not supported, but it's working now. 
So I guess we could close that bug and maybe add some info in the docs or so, that iwpriv isn't working with some cards, but wpa_supplicant in the (currently masked) 0.6.1 version is working?
Comment 4 Daniel Drake (RETIRED) gentoo-dev 2008-01-28 14:08:23 UTC
I think you're interpretation of iwpriv is incorrect -- it really should never be used for the kinds of things you had to use it for. Unless the docs already mention iwpriv for WPA, I don't think anything needs to be changed.