I had configure usb Ralink RT5370 802.11b/g/n adapter in Ubuntu 12.04.

lsusb: ID 148f:5370 Ralink Technology, Corp. RT5370 Wireless Adapter

I use rt2800usb driver - it seem to be better then the orig from Ralink - more features, no (???) logs, ... But this driver do no know this particular usb ID yet -> we must configure udev.

My working config:


$ cd /etc/udev/rules.d $ vim 95-rt5370-usb.rules

  • SUBSYSTEM=="usb", ATTR{idVendor}=="148f", ATTR{idProduct}=="5370", RUN+="/etc/udev/rules.d/rt5370-usb.sh"

$ vim rt5370-usb.sh

  • #!/bin/sh modprobe rt2800usb

    echo 148F 5370 > /sys/bus/usb/drivers/rt2800usb/new_id

$ vim 70-persistent-net.rules

  • # -- identification via driver # USB device 0x148f:0x5370 (usb) #SUBSYSTEM=="net", ACTION=="add", DRIVERS=="rt2800usb", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="wlan*", NAME="wlan0", RUN+="/etc/udev/rules.d/rt5370-net.sh" # -- identification via orig MAC (more standard way) # USB device 0x148f:0x5370 (usb) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="e8:4e:06:03:ea:08", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="wlan*", NAME="wlan0", RUN+="/etc/udev/rules.d/rt5370-net.sh"

$ vim rt5370-net.sh

  • #!/bin/sh # change the orig MAC to another, if you like

    if test -f /tmp/mac; then read MAC < /tmp/mac; else MAC=xx:xx....:xx; fi ifconfig wlan0 hw ether $MAC

That is all - after plug in the card, Network Manager can use it Smile :-)

--kapetr

Resources:


# https://wiki.archlinux.org/index.php/Udev # https://help.ubuntu.com/community/WifiDocs/Device/Tenda_W311M - (not working for U12.04 - modification necessary (like by me above)) # http://www.reactivated.net/writing_udev_rules.html # udevadm info -a -p /sys/bus/usb/devices/1-1.3 # udevadm test /sys/bus/usb/devices/1-1.3


CategoryWireless

WifiDocs/Device/Ralink_RT5370 (last edited 2013-01-31 21:53:10 by kapetr)