如何使 D-Link DWA-140 usb wlan 工作?

如何使 D-Link DWA-140 usb wlan 工作?

我刚刚安装了 natty beta 1,我的 d-link dwa-140b2 usb wlan 加密狗不再工作了。有什么办法可以修复它吗?

这是我在系统日志中得到的信息

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

答案1

我也有一台 DWA 140,并且在 Natty Beta 2 上受到相同问题的影响。出现该问题的原因是 Ubuntu 不仅加载rt2870staDWA 140 所需的内核模块,它还加载了其他 ralink 芯片组的一些其他模块。

首先查看您已加载哪些与 ralink 相关的模块:

lsmod | grep ^rt

示例输出:

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

现在你必须卸载所有以“rt”开头的内容:

sudo modprobe -rf rt2870sta rt2800usb rt2800lib rt2x00usb rt2x00lib

然后重新加载rt2870sta模块

sudo modprobe rt2870sta

现在您应该能够连接到网络了。如果您不想在每次重启时加载/卸载这些模块,则必须在文件中将不需要的模块列入黑名单/etc/modprobe.d/blacklist.conf,例如添加以下行:

blacklist rt2800usb
blacklist rt2800lib
blacklist rt2x00usb
blacklist rt2x00lib

相关内容