Getting Zyxel NWD-270N works on Ubuntu 10.04 LTS

Posted on

I have to install Ubuntu 10.04 LTS on a machine as a sales terminal which will run Ruby on Rails. The problem that I encounter is Zyxel NWD-270N, a wireless adaptor. At the first glance, it looks like it should work out of box. Zyxel NWD-270N supposes to use rt2870sta driver.

Unfortunately, there seems to be something wrong with Ubuntu 10.04 LTS that tries to load rt2800usb and it does not work. So, I google and find this link

Noting that I haven't updated the Ubuntu after install yet.

Since this thread is about Asus USB-N13, I have to find my vendor and product ID first by run:

lsusb

And here is the partial result:

...
Bus 002 Device 003: ID 0586:341a Zyxel Communications Corp.
...

The next step is to tell the OS that it should use rt2870sta driver when it sees this vendor and product ID. There are two files that I have to create

The first one is /etc/udev/rules.d/network_drivers.rules

sudo vim /etc/udev/rules.d/network_drivers.rules

and add this line:

ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="0586", ATTR{idProduct}=="341a", RUN+="/sbin/modprobe -qba rt2870sta"

The second one is /etc/modprobe.d/network_drivers.conf

sudo vim /etc/modprobe.d/network_drivers.conf

and add this line:

install rt2870sta /sbin/modprobe --ignore-install rt2870sta $CMDLINE_OPTS; /bin/echo "0586 341a" > /sys/bus/usb/drivers/rt2870/new_id

After restart, it seems to be able to find wireless access points but it is not able to connect. Therefore, I decide to find an old wireless adaptor as a temporary adaptor in order to connect to the Internet to run update:

sudo aptitude update
sudo aptitude upgrade

And also install (I don't know if it is necessary after reading the package description “This empty package allows people to keep their backported wireless modules up-to-date when upgrading their Linux kernel.” I install it anyway)

sudo aptitude install linux-backports-modules-wireless-lucid-generic

After restart again, it works! However, it doesn't seems to run on wireless N, only at 54 Mbps. Anyway it works and I can continue my work.