Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I compiled and installed USB-N13 wifi drivers using dkms. Everything was fine with the WiFi and I also had 1 successful kernel upgrade(3.2.0-24). Since kernel version 3.2.0-25 (and recently 3.2.0-26) my wifi card can't connect to my AP.

iwconfig output is below:

ra0   Ralink STA  ESSID:"11n-AP"  Nickname:"RT2870STA"
      Mode:Auto  Frequency=2.412 GHz  Access Point: Not-Associated
      Bit Rate:1 Mb/s
      RTS thr:off   Fragment thr:off
      Link Quality=10/100  Signal level:0 dBm  Noise level:0 dBm
      Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
      Tx excessive retries:0  Invalid misc:0   Missed beacon:0

my /etc/network/interfaces file is below:

#WiFi network Card
auto ra0
iface ra0 inet dhcp
wpa-ssid <myNetrowk>
wpa-psk <myPassword>

Update 1: I totally forgot to mention that after I reboot system 4-5 times Wifi starts to work again. Would like to know where should I start to look for the issues since this behavior is not acceptable.

share|improve this question
This will help – atenz Jul 3 '12 at 17:29
@tijybba: Thank you for the information. The module gets created and it looks like it is the same as if I do a fresh wifi install for the current version of kernel – Timka Jul 3 '12 at 17:40
Also consider the following detailed answer by izx if such problem further persists in future kernel upgrade. – atenz Jul 3 '12 at 17:41

You'll have to rebuild the driver module for your card. Here's how:

  • Your adapter has a Ralink RT2870 chipset. You can download the official Linux drivers from this site. Save them to your Downloads folder (default):

    enter image description here

  • Open a terminal with Ctrl-Alt-T, and paste the following, line by line:

    sudo apt-get install linux-headers-$(uname -r) build-essential
    cd Downloads
    tar -xaf 2010_0709_RT2870_Linux_STA_v2.4.0.1.tar.bz2
    cd 2010_0709_RT2870_Linux_STA_v2.4.0.1
    sed -i -e "s/$WPA1=n/$WPA1=y/g" -e "s/$WPA2=n/$WPA2=y/g" os/linux/
    sudo make && sudo make install && sudo make clean
    cd ..
  • Reboot, and hopefully your wireless connection will work!

  • Then open up the Downloads folder in the File Manager and delete the downloaded Ralink file/folder.

    enter image description here

share|improve this answer
I'm using server/noGUI. But thanks for this! – Timka Jul 3 '12 at 17:42

Your Answer


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.