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 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

1 Answer 1

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):

  • 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
    WPA1=HAS_WPA_SUPPLICANT
    WPA2=HAS_NATIVE_WPA_SUPPLICANT
    sed -i -e "s/$WPA1=n/$WPA1=y/g" -e "s/$WPA2=n/$WPA2=y/g" os/linux/config.mk
    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.

share|improve this answer

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.
{"cc_re__cc_re__cc_by_sa_3_0": ["sites in the Stack Exchange network\">Area 51</a></li>\r\n                        <li><a href=\"//careers.stackoverflow.com?utm_source=stackoverflow.com&amp;utm_medium=site-ui&amp;utm_campaign=footerlink\">Stack Overflow Careers</a></li>\r\n                    \r\n                </ol>\r\n            </td>\r\n    </tr>\r\n</table>\r\n                </div>\r\n            </div>\r\n\r\n            <div id=\"copyright\">\r\n                site design / logo &#169; 2014 stack exchange inc; user contributions licensed under <a href=\"http://creativecommons.org/licenses/by-sa/3.0/\" rel=\"license\">cc by-sa 3.0</a>                   with <a href=\"http://blog.stackoverflow.com/2009/06/attribution-required/\" rel=\"license\">attribution required</a>\r\n            </div>\r\n            <div id=\"svnrev\">\r\n                rev 2014.11.24.2041\r\n            </div>\r\n                <div id=\"additional-notices\">\r\n                    Ubuntu and Canonical are registered trademarks of Canonical Ltd.\r\n                </div>\r\n            \r\n        </div>\r\n    </div>\r\n    <noscript>\r\n        <div id=\"noscript-w"], "copyright__copyright__copyright": ["e \"s/$WPA2=n/$WPA2=y/g\" os/linux/config.mk\n    sudo make && sudo make install && sudo make clean\n    cd ..\n    \n  \u2022 Reboot, and hopefully your wireless connection will work!\n\n  \u2022 Then open up the Downloads folder in the File Manager and delete the downloaded Ralink file/folder.\n\nshare|improve this answer\n\nYour Answer\n\n\u00a0\ndiscard\n\nBy posting your answer, you agree to the privacy policy and terms of service.\n\nNot the answer you're looking for? Browse other questions tagged or ask your own question."]}