Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I just installed natty beta 1 and my d-link dwa-140b2 usb wlan dongle doesn't work any more. Any ideas for how to fix it?

This is what I get in syslog

Apr 12 20:00:16 agda kernel: [  118.779178] ieee80211 phy2: Selected rate control algorithm 'minstrel_ht'
Apr 12 20:00:16 agda kernel: [  118.786483] Registered led device: rt2800usb-phy2::radio
Apr 12 20:00:16 agda kernel: [  118.786572] Registered led device: rt2800usb-phy2::assoc
Apr 12 20:00:16 agda kernel: [  118.786658] Registered led device: rt2800usb-phy2::quality
Apr 12 20:00:16 agda NetworkManager[712]: <info> found WiFi radio killswitch rfkill2 (at /sys/devices/pci0000:00/0000:00:1d.7/usb1/1-3/1-3:1.0/ieee80211/phy2/rfkill2) (driver <unknown>)
Apr 12 20:00:16 agda NetworkManager[712]: <info> (wlan0): driver supports SSID scans (scan_capa 0x01).
Apr 12 20:00:16 agda NetworkManager[712]: <info> (wlan0): new 802.11 WiFi device (driver: 'rt2800usb' ifindex: 5)
Apr 12 20:00:16 agda NetworkManager[712]: <info> (wlan0): exported as /org/freedesktop/NetworkManager/Devices/3
Apr 12 20:00:16 agda NetworkManager[712]: <info> (wlan0): now managed
Apr 12 20:00:16 agda NetworkManager[712]: <info> (wlan0): device state change: 1 -> 2 (reason 2)
Apr 12 20:00:16 agda NetworkManager[712]: <info> (wlan0): bringing up device.
Apr 12 20:00:16 agda NetworkManager[712]: <warn> (wlan0): firmware may be missing.
Apr 12 20:00:16 agda NetworkManager[712]: <info> (wlan0): deactivating device (reason: 2).
Apr 12 20:00:16 agda NetworkManager[712]:    SCPlugin-Ifupdown: devices added (path: /sys/devices/pci0000:00/0000:00:1d.7/usb1/1-3/1-3:1.0/net/wlan0, iface: wlan0)
Apr 12 20:00:16 agda NetworkManager[712]:    SCPlugin-Ifupdown: device added (path: /sys/devices/pci0000:00/0000:00:1d.7/usb1/1-3/1-3:1.0/net/wlan0, iface: wlan0): no ifupdown configuration found.
Apr 12 20:00:16 agda kernel: [  118.896657] phy2 -> rt2x00lib_request_firmware: Error - Current firmware does not support detected chipset
share|improve this question
    
(The DWA-140b2 worked fine for weeks in Crunchbang Linux) –  Ola Apr 12 '11 at 21:36
add comment

1 Answer

up vote 5 down vote accepted

I have also got an DWA 140 and was affected by the same problem on Natty Beta 2. The reason for the problem is that Ubuntu does not only load the rt2870sta kernel module which is needed by the DWA 140, it also loads some other modules for other ralink chipsets.

First look which ralink-ralated modules you have loaded:

lsmod | grep ^rt

Example output:

rt2870sta             450556  0 
rt2800usb              18235  0 
rt2800lib              45181  1 rt2800usb
rt2x00usb              20330  1 rt2800usb
rt2x00lib              49235  3 rt2800usb,rt2800lib,rt2x00usb

Now you have have to unload everything that starts with "rt":

sudo modprobe -rf rt2870sta rt2800usb rt2800lib rt2x00usb rt2x00lib

Then re-load the rt2870sta module

sudo modprobe rt2870sta

You should now be able to connect to your network. If you don't want to load/unload these modules on every reboot, you must blacklist the needless modules in your /etc/modprobe.d/blacklist.conf file, for example add these lines:

blacklist rt2800usb
blacklist rt2800lib
blacklist rt2x00usb
blacklist rt2x00lib
share|improve this answer
1  
Appendix: The above workaround works, but actually both drivers are suitable for the DWA 140. rt2870sta is the old one (will be dropped in the future) and rt2800usb is the new one, but Natty ships an older version of linux-firmware than needed. With a new version of the rt2870.bin firmware you can get the new driver working (blacklist the old rt2870sta), check launchpad bug bugs.launchpad.net/bugs/762987 –  user244 Jun 2 '11 at 8:25
1  
You can make the removal-step even quicker with sudo modprobe -rf 'lsmod | awk '/^rt/ {print $1}'' (the outer ticks should be back-ticks...) –  Morten Siebuhr Jun 14 '11 at 16:58
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.