Problem with rt73usb.ko in compiled 2.6.24.2 kernel for ARM

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

l3on

14-02-2008 12:32:51

Hi,

I am upgrading my embedded ARM Linux distribution
from kernel 2.6.23 to 2.6.24.2.
Previously I used the Ralink (RT73_Linux_STA_Drv1.0.4.0) driver to
support the DWL-G122 DlinkWi-Fi usb adapter,
but this driver doesn't compile anymore in 2.6.24.2
(some changes in the net_device structure).
Even the new driver, (2008_0117_RT73_Linux_STA_Drv1.1.0.0),
doesn't compile for this kernel.

Then I built the Ralink rt73 usb support from the original 2.6.24.2
kernel. I don't use 'udev' so I used a hotplug script to load the
firmare.

1. My first question. I am using RT73.bin from the
RT73_Linux_STA_Drv1.0.4.0 driver package. Is this correct ?

Aparently after I load the drivers (rt73usb) and bring the interface up
the firmware is loaded OK. I got in the log

rt73usb 1-21.0 usb_probe_interface
rt73usb 1-21.0 usb_probe_interface - got id
phy0 -> rt73usb_validate_eeprom EEPROM recovery - NIC 0xffef
phy0 -> rt73usb_validate_eeprom EEPROM recovery - Led 0xe000
phy0 -> rt73usb_validate_eeprom EEPROM recovery - RSSI OFFSET BG 0x0000
phy0 -> rt2x00_set_chip Info - Chipset detected - rt 1300, rf 0002, rev 0002573a.
phy0 Selected rate control algorithm 'simple'
usbcore registered new interface driver rt73usb
phy0 -> rt2x00lib_request_firmware Info - Loading firmware file 'rt73.bin'.
phy0 -> rt2x00lib_request_firmware Info - Firmware detected - version 1.7.
phy0 -> rt73usb_init_bbp Debug - Start initialization from EEPROM...
phy0 -> rt73usb_init_bbp Debug - ...End initialization from EEPROM.
HW CONFIG channel=1 freq=2412 phymode=2

But when I try to configure the interface I got errors when using
'iwpriv' with the configurations commands I used previously.

if I execute
# iwpriv wlan0
wlan0 no private ioctls.

2. Any sugestion on what I am doing wrong ?

Best regards,
Claudio

IvD

14-02-2008 14:48:49

rt2x00 does not have private ioctls.
You can just use iwconfig or wpa_supplicant to configure your interface.