rt3070sta module missing in linux-image-2.6.32-21-generic

Bug #566962 reported by Brendan Braybrook
42
This bug affects 6 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

Binary package hint: linux-image-2.6.32-21-generic

for whatever reason the rt3070sta module is missing from linux-image-2.6.32-21-generic as installed with 10.04-beta-2.

it is present in the 2.6.31-20 kernel, however:

brendan@asrock:~$ dpkg -L linux-image-2.6.31-20-generic | grep rt3070
/lib/modules/2.6.31-20-generic/kernel/drivers/staging/rt3070
/lib/modules/2.6.31-20-generic/kernel/drivers/staging/rt3070/rt3070sta.ko

brendan@asrock:~$ dpkg -L linux-image-2.6.32-21-generic | grep rt3070
brendan@asrock:~$

if rt3070sta isn't present my machine falls back to rt2870sta, which wpa_supplicant cannot associate with (not sure if it could connect to an unsecured wireless network, i didn't try).

Changed in linux (Ubuntu):
status: New → Confirmed
Revision history for this message
NeoRazorX (neorazorx) wrote :

Same here.

$ lsusb
Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 003: ID 1c4f:0002 SiGma Micro
Bus 007 Device 002: ID 062a:0003 Creative Labs
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 083a:b522 Accton Technology Corp. EZ Connect N Draft 11n Wireless USB2.0 Adapter
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

$ lshw -C network
*-network
       description: Wireless interface
       physical id: 1
       logical name: wlan0
       serial: 00:22:2d:41:70:db
       capabilities: ethernet physical wireless
       configuration: broadcast=yes multicast=yes wireless=RTxx70 Wireless

Revision history for this message
bedhead75 (bedhead999) wrote :

I can confirm this too, using the linux-image-2.6.32-21-generic kernel in Ubuntu 10.04. The rt3070sta driver was working just fine using Ubuntu 9.10. I have no idea why this changed. The latest rt3070sta drivers from Ralink don't seem to properly work with this kernel as it still tries to load the rt2870sta driver when rt3070sta has been installed.

Revision history for this message
Stefan Trittler (ubuntu-trittler-com) wrote :

Tenda W311U card here, with rt3070:
Works fine with 2.6.31-21 kernel (both rt2870sta and rt3070sta work), does not work with 2.6.32-22 (rt2870 scans, but WPA authentication fails; rt3070 does not exist, and compiling driver from Ralink for rt3070 doesn't help, as it fails to load due to missing symbols).
Running rt2870 leads to long sequences of log entries like that:
[ 103.790183] ===>rt_ioctl_giwscan. 2(2) BSS returned, data->length = 421
[ 103.790396] ==>rt_ioctl_siwfreq::SIOCSIWFREQ[cmd=0x8b04] (Channel=2)
[ 105.111357] #
[ 105.121352] #
[ 105.721283] #
[ 106.711290] #
[ 107.111368] #
[ 107.121365] #
[ 108.111375] #
[ 108.121371] #
[ 109.671316] #
[ 109.821296] #
[ 109.971279] #
[ 113.797405] ===>rt_ioctl_giwscan. 2(2) BSS returned, data->length = 421
[ 113.797614] ==>rt_ioctl_siwfreq::SIOCSIWFREQ[cmd=0x8b04] (Channel=2)
[etc ...]

I'm running with the 2.6.31-21 kernel for now; apparmor fails here but apart from that it seems to work.

Revision history for this message
Brendan Braybrook (brendan-ming) wrote :

the module is also missing from 2.6.32-22-generic

Revision history for this message
Brendan Braybrook (brendan-ming) wrote :

attached is a kernel module for 2.6.32-22 of rt3070sta.ko for anyone else bitten by this.

Revision history for this message
Brendan Braybrook (brendan-ming) wrote :

also missing in 2.6.35.20-generic. attached pre-compiled module for anyone who needs it.

in DPO_RT3070_LinuxSTA_V2.3.0.4_20100604, the following patch is required in order to build:

--- ./include/os/rt_linux.h.orig 2010-09-20 10:20:45.000000000 -0700
+++ ./include/os/rt_linux.h 2010-09-20 10:21:53.000000000 -0700
@@ -1011,8 +1011,8 @@
 #define RT28XX_PUT_DEVICE usb_put_dev
 #define RTUSB_ALLOC_URB(iso) usb_alloc_urb(iso, GFP_ATOMIC)
 #define RTUSB_SUBMIT_URB(pUrb) usb_submit_urb(pUrb, GFP_ATOMIC)
-#define RTUSB_URB_ALLOC_BUFFER(pUsb_Dev, BufSize, pDma_addr) usb_buffer_alloc(pUsb_Dev, BufSize, GFP_ATOMIC, pDma_addr)
-#define RTUSB_URB_FREE_BUFFER(pUsb_Dev, BufSize, pTransferBuf, Dma_addr) usb_buffer_free(pUsb_Dev, BufSize, pTransferBuf, Dma_addr)
+#define RTUSB_URB_ALLOC_BUFFER(pUsb_Dev, BufSize, pDma_addr) usb_alloc_coherent(pUsb_Dev, BufSize, GFP_ATOMIC, pDma_addr)
+#define RTUSB_URB_FREE_BUFFER(pUsb_Dev, BufSize, pTransferBuf, Dma_addr) usb_free_coherent(pUsb_Dev, BufSize, pTransferBuf, Dma_addr)
 #else

 #define RT28XX_PUT_DEVICE rausb_put_dev

(usb_buffer_alloc renamed to usb_alloc_coherent, usb_buffer_free renamed to usb_free_coherent)

Revision history for this message
Brendan Braybrook (brendan-ming) wrote :

really attaching module for 2.6.35-20-generic this time.

Revision history for this message
koanhead (googoleyes) wrote :

As far as I can tell, the rt3070sta module has been deprecated and its functionality rolled into rt2870sta. See, for example:
http://git.kernel.org/?p=linux/kernel/git/stable/linux-2.6.32.y.git&a=search&h=HEAD&st=commit&s=rt307

If rt2870sta breaks functionality on these devices, obviously that's a problem. I managed to get my ASUS USBN13 working by adding udev rules to make rt2870sta recognize the USB ID of the device (for some reason, the Debian version includes an alias for that ID but the Ubuntu version does not.) The rule change is here:

http://ubuntuforums.org/showpost.php?p=9445731&postcount=58

I will test Brendan's two modules on my laptop as it has both Lucid and Maverick installed (and not the udev rules mentioned above), and report back.

Brendan, have you got these modules to work with DKMS? I couldn't get 2.1.0.2 to dkms-add.

Revision history for this message
Brendan Braybrook (brendan-ming) wrote :

i haven't bothered to set up DKMS for it, no. new kernel versions haven't been coming out as quickly so i haven't felt a pressing need to do so - i just keep the source handy and rebuild anytime i discover the need (then attach the module to this ticket)

tags: added: linux-image-2.6.35-20-generic
tags: added: rt3070sta
Revision history for this message
Wolfgang Kufner (wolfgangkufner) wrote :

Such Ralink hardware is now supposed to be run by the rt2800usb module. Could you try with a current oneiric live cd (or perhaps more conveniently a usb stick) so that we know whether there are bugs remaining.

Thanks

tags: added: rt2800usb
Changed in linux (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Eliah Kagan (degeneracypressure) wrote :

(Current Oneiric daily-live images, for burning to CD/DVD or writing to a USB stick, are available at http://cdimage.ubuntu.com/daily-live/current/.)

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for linux (Ubuntu) because there has been no activity for 60 days.]

Changed in linux (Ubuntu):
status: Incomplete → Expired
Revision history for this message
TonyR (rooneyo) wrote :

I added a support thread (164336) requesting how to get the USB N13 device to work at "N" speed on a laptop which has already got an internal wireless adapter without any successful suggstions or assistance provided.

Th RT2800 USB driver is loaded however if I blacklist this I get the USB N13 to work in the following conditions.

If the internal Laptop wireless driver is turned on the N13 USB wireless will connect and work at 54MB NOT 300MB using driver USB. When connected to another desktop Ubuntu system it loads and conects at 270MB.

If the internal laptop wireless card is turned off the USB does not connect. I expected that the best way to use the USB wireless card would be to first turn off the internal card as it would work with other O/S

If the internal laptop wireless is turned on and the USB is not connect the internal wireless connects at 54 MB using driver iwl3945.

I want to be able to use USB wireless when the internal laptop is turned off and connect at 270MB or better than 54MB to watch MythTv. The question remains how are these devices supported as many people with older laptops with 54M G wireless cards will want to upgrade to a 300 MB N device however the questions is how will Ubuntu support this scenario?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.